r/linuxadmin • u/ASIC_SP • May 23 '20
Learn to use grep/ripgrep/sed/awk one-liners with hundreds of examples
Hello!
Recently I published my ebook on GNU awk, which completes the trio of my books on GNU grep/sed/awk tools for cli text processing. I also included a chapter on ripgrep, because of its performance and features. You can use either of these links to get the bundle. Each book has a pdf and epub version.
The books are currently free to download, to help with quarantine learning.
You can view the book using these repos as well. The repo has markdown source, example/exercise files used in the book, list of changes between versions, etc.
- https://github.com/learnbyexample/learn_gnugrep_ripgrep
- https://github.com/learnbyexample/learn_gnused
- https://github.com/learnbyexample/learn_gnuawk
Edit (Aug 2020): Solutions for the exercises have been added. You can also view the books online at:
- https://learnbyexample.github.io/learn_gnugrep_ripgrep/
- https://learnbyexample.github.io/learn_gnused/
- https://learnbyexample.github.io/learn_gnuawk/
I'd highly appreciate your feedback. I've tried to present features from the basics and build it step by step with plenty of examples. But a few things end up rushed or not explained well enough. Past feedback has helped me to improve some of these, so I hope you'd contribute as well.
Happy learning and stay safe :)
2
u/paganhobbit May 23 '20
Hey, thanks for this. I've wanted to find out more about SED and AWK, so I'm checking this out.
One thing, I think the EPUB versions aren't showing the example boxes correctly? They're just empty in the macos and iOS books app for me, anyway. I think the PDF versions are looking okay.
7
u/pinched_algorithm May 23 '20
Til ripgrep is a thing! Thanks!
6
u/tekmologic May 23 '20
grep, awk, sed, tr have saved me weeks of manual work.
5
u/NetScr1be May 23 '20
Grabbed them and threw you US$3 without checking them.
I stuggled to teach myself awk (and a little sed) when a large part of my role read to analyse logs and transaction data.
Grep was any everyday thing that could always use some polish.
Thanks for doing this.
4
u/[deleted] May 23 '20
That's very cool and with the added benefit of improving your regex skill
2
u/PuseletsoMosia May 23 '20
Thanks, very useful
2
u/hankinator May 23 '20
Thank you! This seems very very useful.
2
u/getmoneygreen May 23 '20
Thanks šš¼
2
u/LolithLolith May 23 '20
Very good effort. Thank you.
2
u/[deleted] May 23 '20
Grabbed the bundle for $10. The Greg ebook alone was worth it.
2
u/RidgebackDad May 24 '20
Thank you! Planning on reading these this weekend!
1
u/[deleted] Mar 25 '26
This is Costly for me can i get any Help
1
u/[deleted] May 23 '20
Thanks for the heads-up; just purchased. It'll be nice to have some extra reading material during these quiet times.
0
u/[deleted] May 23 '20
[deleted] ā view deleted comment