hck
regexp-cut
hck | regexp-cut | |
---|---|---|
15 | 4 | |
680 | 15 | |
- | - | |
4.6 | 1.8 | |
17 days ago | almost 3 years ago | |
Rust | Shell | |
The Unlicense | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hck
- An old but good field command for printing tab separated fields from a file to stdou.t
-
What is yay situation?
hck ["hck" in community repo] - a fancier cut with regex field delimiters
-
What are your favorite Rust-powered Linux programs?
Biased because it's my tool, but I do use it every day! hck - which is like cut, but much faster and with a tidier set of features.
-
Tuc – When cut doesn’t cut it
hck - close to drop in replacement for cut that can use a regex delimiter instead of a fixed string
-
Tuc – when cut doesn’t cut it
Nice, especially the format output.
See also:
* hck (https://github.com/sstadick/hck) - close to drop in replacement for cut that can use a regex delimiter instead of a fixed string
* rcut (https://github.com/learnbyexample/regexp-cut) - my own bash+awk script, supports regexp delimiters, field reordering, negative indexing, etc
- csvlens: Command line CSV file viewer
-
Ask HN: Let's Build CheckStyle for Bash?
You might want to check out 'hck' to replace 'cut'.
https://github.com/sstadick/hck
- hck v0.6.6: > 24% performance improvements on common workloads
- Show HN: Hck – a fast and flexible cut-like tool
regexp-cut
-
Ask HN: What do you use to make CLIs?
I use a lot of CLI tools, but haven't written many for myself. Mostly, aliases/functions and some scripts in Bash/Python.
Extract details for command options from man/help: https://github.com/learnbyexample/command_help/blob/master/c...
cut-like syntax for field manipulations with regexp, negative indexing, etc: https://github.com/learnbyexample/regexp-cut/blob/main/rcut
simple calculator using python syntax: https://learnbyexample.github.io/practice_python_projects/ca...
-
Tuc – When cut doesn’t cut it
rcut - my own bash+awk script, supports regexp delimiters, field reordering, negative indexing, etc
-
Tuc – when cut doesn’t cut it
Nice, especially the format output.
See also:
* hck (https://github.com/sstadick/hck) - close to drop in replacement for cut that can use a regex delimiter instead of a fixed string
* rcut (https://github.com/learnbyexample/regexp-cut) - my own bash+awk script, supports regexp delimiters, field reordering, negative indexing, etc
-
Show HN: Hck – a fast and flexible cut-like tool
I saw about `hck` recently on twitter, was impressed to see support for compressed files. From the current todo list, I hope complement is implemented for sure.
I see Negative index is currently "unlikely". I'm writing a similar tool [0], but with bash+awk. I solved the negative index support with a `-n` option, which changes the range syntax to `:` instead of `-` character.
My biggest trouble came with literal field separator [1], because FS can only be specified as a string in awk and backslash is a metacharacter for both string and regexp.
[0] https://github.com/learnbyexample/regexp-cut
[1] https://learnbyexample.github.io/escaping-madness-awk-litera...
What are some alternatives?
sd - Intuitive find & replace CLI (sed alternative)
tuc - When cut doesn't cut it
murex - A smarter shell and scripting environment with advanced features designed for usability, safety and productivity (eg smarter DevOps tooling)
tac - A high-performance, cross-platform file reverse utility
nlpo3 - Thai Natural Language Processing library in Rust, with Python and Node bindings.
evolution-mail-filter-clamav - ClamAV email filter for Evolution
csvlens - Command line csv viewer
neofetch - 🖼️ A command-line system information tool written in bash 3.2+
UNIC - UNIC: Unicode and Internationalization Crates for Rust
keygen-cli - Official command line tool for publishing releases to Keygen's distribution API.
ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore
choose - A human-friendly and fast alternative to cut and (sometimes) awk