learn_gnuawk
learn_gnugrep_ripgrep
Our great sponsors
learn_gnuawk | learn_gnugrep_ripgrep | |
---|---|---|
8 | 6 | |
1,052 | 304 | |
- | - | |
2.3 | 3.1 | |
8 months ago | 10 months ago | |
Shell | Shell | |
MIT License | 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.
learn_gnuawk
-
Learn GNU awk with hundreds of examples and exercises
You can read the book online here: https://learnbyexample.github.io/learn_gnuawk/
-
Ask HN: What is the best source of documentation for Awk?
I don't know if it's the best but this resource is good - https://github.com/learnbyexample/learn_gnuawk
-
Unix legend Brian Kernighan, who owes us nothing, keeps fixing foundational AWK code | Co-creator of core Unix utility "awk" (he's the "k" in "awk"), now 80, just needs to run a few more tests on adding Unicode support
I wrote a book for GNU awk one-liners with plenty of examples and exercises. Free to read here: https://learnbyexample.github.io/learn_gnuawk/
-
Ask HN: Can I see your cheatsheet?
I use my ebooks for reference:
* GNU grep and ripgrep (https://learnbyexample.github.io/learn_gnugrep_ripgrep/)
* GNU sed (https://learnbyexample.github.io/learn_gnused/)
* GNU awk (https://learnbyexample.github.io/learn_gnuawk/)
* Ruby one-liners cookbook (https://learnbyexample.github.io/learn_ruby_oneliners/)
* Perl one-liners cookbook (https://learnbyexample.github.io/learn_perl_oneliners/)
* Command line text processing with GNU Coreutils (https://learnbyexample.github.io/cli_text_processing_coreuti...)
* Command line text processing with Rust tools (https://learnbyexample.github.io/cli_text_processing_rust/) — work-in-progress
* Computing from the Command Line (https://learnbyexample.github.io/cli-computing/) — work-in-progress
- exercises.
- A practical overview of most useful Unix tools
-
Are there any good sites for linux exercises/drills?
GNU awk
learn_gnugrep_ripgrep
-
Learn GNU grep and ripgrep with hundreds of examples and exercises
Visit https://github.com/learnbyexample/learn_gnugrep_ripgrep for markdown source, example files, exercise solutions, sample chapters and other details related to the book.
-
Ask HN: Can I see your cheatsheet?
I use my ebooks for reference:
* GNU grep and ripgrep (https://learnbyexample.github.io/learn_gnugrep_ripgrep/)
* GNU sed (https://learnbyexample.github.io/learn_gnused/)
* GNU awk (https://learnbyexample.github.io/learn_gnuawk/)
* Ruby one-liners cookbook (https://learnbyexample.github.io/learn_ruby_oneliners/)
* Perl one-liners cookbook (https://learnbyexample.github.io/learn_perl_oneliners/)
* Command line text processing with GNU Coreutils (https://learnbyexample.github.io/cli_text_processing_coreuti...)
* Command line text processing with Rust tools (https://learnbyexample.github.io/cli_text_processing_rust/) — work-in-progress
* Computing from the Command Line (https://learnbyexample.github.io/cli-computing/) — work-in-progress
- exercises.
-
Grep Flags – The Good Stuff
>The -I flag only considers text files. This radically speeds up recursive greps.
I use ripgrep when I need better speed. I've pretty much switched to ripgrep these days, but still use GNU grep when I'm answering questions on stackoverflow, reddit, etc.
>ABC flags
Good to also know about `--group-separator` and `--no-group-separator` when there are multiple non-contiguous matches. Helps to customize the separator or remove them altogether. Sadly, these options are still not explained in `man grep` on Ubunutu. You'll have to use `info grep` or the online manual to find them.
Options I use often that is not mentioned in the article:
* `-c` to count the number of matches
* `-F` for fixed string matching
* `-x` to match whole lines
* `-P` for PCRE (as mentioned in many comments here)
* `--color=auto` this is part of command name alias, so it is always used
I wrote a book as well on "GNU grep and ripgrep": https://github.com/learnbyexample/learn_gnugrep_ripgrep Free to read online.
-
Are there any good sites for linux exercises/drills?
GNU grep and ripgrep
What are some alternatives?
cheatsheet - 📜 A compendium of CLI commands I can't stop looking up
dotfiles - My configuration files
clmystery - A command-line murder mystery
gcc-xpack - A binary distribution of the GNU Compiler Collection (GCC)
TUI-apps - Terminal User Interface (TUI) apps
goexamples - Complete golang example; sample Go code
dotfiles - My dotfiles.
rhawk - IRC bot written in GNU Awk
learn_gnused - Example based guide to mastering GNU sed