3 ms·
Good introduction. But they should've at least mentioned that these tools can read a file input directly. >For example, the sed man page weighs in at around 1,
by asicsp 5y ago
Good introduction. But they should've at least mentioned that these tools can read a file input directly.
>For example, the sed man page weighs in at around 1,800 words alone without ever really explaining how regular expressions work or the most common uses of sed itself.
For Linux versions, `info` pages for grep/sed/awk are much more detailed and includes examples too. I use `man` pages only for quick reference. Also, I think I've read that BSD man pages are more detailed and include examples compared to Linux versions.
If you'd like to learn more, I have books on these commands with hundreds of examples and exercises (free to read online):
* https://learnbyexample.github.io/learn_gnugrep_ripgrep/ https://learnbyexample.github.io/learn_gnugrep_ripgrep/
* https://learnbyexample.github.io/learn_gnused/ https://learnbyexample.github.io/learn_gnused/
* https://learnbyexample.github.io/learn_gnuawk/ https://learnbyexample.github.io/learn_gnuawk/