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 https://github.com/learnbyexample/TUI-apps 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 :)

  • @Yewb
    63 months ago

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

    • learnbyexampleOP
      53 months ago

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

      • The Giant Korean
        33 months ago

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