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


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:

Free PDF/EPUB bundle

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.

TUI apps for interactive exercises

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 :)


Wow perl, now that’s a name I’ve not heard in a long time.


I had to learn Linux CLI tools, Vim and Perl at my very first job. Have a soft spot for Perl, despite not using it much these days other than occasional one-liners (mainly for advanced regex features).

TheGiantKorean, avatar

Same. I was a Perl dev back in the day. It’s excellent for massaging data.


Those covers are adorable ❤️


Thanks! 😊


Cheers. You turned me on to Leanpub too. Looking forward to diving in


Love your books and have bought the all book bundle. Please keep doing what youre doing. Good stuff


Thanks a lot for the kind words! Means a lot to me :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rosin
  • DreamBathrooms
  • modclub
  • magazineikmin
  • everett
  • ethstaker
  • mdbf
  • Youngstown
  • slotface
  • cubers
  • thenastyranch
  • khanakhh
  • kavyap
  • GTA5RPClips
  • provamag4
  • tacticalgear
  • Leos
  • tester
  • anitta
  • normalnudes
  • Durango
  • InstantRegret
  • cisconetworking
  • provamag3
  • lostlight
  • osvaldo12
  • JUstTest
  • relationshipadvice
  • All magazines