CLI text processing with grep, sed, awk, perl and ruby

submitted by learnbyexample


I've been working on updating my ebooks for the past year or so. Last week, I finished the changes for Ruby one-liners ebook. My main motivation was to catch up to any features added in newer versions of these tools, correcting typos, better examples, descriptions, etc. I've also added a few more exercises.

You can read these books online:

You can get my Magical one-liners bundle for free till the end of this month. This bundle contains PDF/EPUB versions of the five ebooks mentioned above.

I also used Textual (Python framework) to create TUI apps. These will help you solve exercises for grep, sed and awk interactively. You can also use any other CLI tool like ripgrep, perl, ruby, etc to solve these questions (as long as the command output matches the expected results).

See my GitHub repo for installation, screenshots and other details.

I would highly appreciate it if you'd let me know how you felt about these books. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.

Happy learning :)

Log in to comment