279

Hello!

I am pleased to announce a new version of my CLI text processing with GNU awk ebook. This book will dive deep into field processing, show examples for filtering features, multiple file processing, how to construct solutions that depend on multiple records, how to compare records and fields between two or more files, how to identify duplicates while maintaining input order and so on. Regular expressions will also be discussed in detail.

Book links

To celebrate the new release, you can download the PDF/EPUB versions for free till 06-April-2025.

Or, you can read it online at https://learnbyexample.github.io/learn_gnuawk/

Interactive TUI apps

Feedback

I would highly appreciate it if you'd let me know how you felt about this book. 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.

Happy learning :)

120
Interactive map of Linux kernel (makelinux.github.io)
96
9
53
92
176
84
$HOME, Not So Sweet $HOME (gist.github.com)
19
CPU performance (curiouscoding.nl)
67
29
GNU awk idioms explained (learnbyexample.github.io)
50
[-] learnbyexample@programming.dev 3 points 2 years ago

Yeah, it is uncommon spelling, but if you google, you'll find it's not that rare ;)

[-] learnbyexample@programming.dev 3 points 2 years ago

I'm self-published and haven't worked for other publications. Sometimes, my submissions reach HN front page, so you might have seen there or because others picked it up from there and shared around elsewhere.

[-] learnbyexample@programming.dev 3 points 2 years ago

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

[-] learnbyexample@programming.dev 4 points 3 years ago

I have a book for Perl One-Liners as well, which I'm currently revising :)

[-] learnbyexample@programming.dev 4 points 3 years ago

I've read his Memory, Sorrow, and Thorn trilogy. Epic dark fantasy, great characters and worldbuilding. The plot is good too, but the pacing goes off rail sometimes.

[-] learnbyexample@programming.dev 3 points 3 years ago

You can do it in Bash as well. Put this in .inputrc:

"\e[A":history-substring-search-backward
"\e[B":history-substring-search-forward

# or, if you want to search only from the start of the command
"\e[A": history-search-backward
"\e[B": history-search-forward
[-] learnbyexample@programming.dev 3 points 3 years ago

Inspired by explainshell, I wrote a script (https://github.com/learnbyexample/command_help) to be used from the terminal itself. It is a bit buggy, but works well most of the time. For example:

$ ch grep -Ao
       grep - print lines that match patterns

       -A NUM, --after-context=NUM
              Print NUM lines of trailing context after matching lines.  Places a
              line containing a group separator (--) between contiguous groups of
              matches.  With the -o or --only-matching option, this has no effect
              and a warning is given.

       -o, --only-matching
              Print  only  the matched (non-empty) parts of a matching line, with
              each such part on a separate output line.
[-] learnbyexample@programming.dev 4 points 3 years ago

Was going to suggest Cradle as well!

I'd add Mage Errant by John Bierce - magical academy, 4 member student group who trust each other, competent teachers, amazing worldbuilding, big battles (in later books), etc.

[-] learnbyexample@programming.dev 4 points 3 years ago* (last edited 3 years ago)

Bookshops & Bonedust by Travis Baldree

Next books in The Weirkey Chronicles by Sarah Lin and Manifestation by Samuel Hinton. And hopefully the second book in The Last Horizon series by Will Wight will release by the end of this year too.

[-] learnbyexample@programming.dev 4 points 3 years ago

I finally started Murderbot series over the weekend. Already done with the first four novellas.

[-] learnbyexample@programming.dev 3 points 3 years ago* (last edited 3 years ago)
  • The Captain by Will Wight
  • The Shadows of Dust by Alec Hutson
  • Portal to Nova Roma by J.R. Mathews
  • Starship's Mage by Glynn Stewart
[-] learnbyexample@programming.dev 3 points 3 years ago

I'm just sharing the article here.

You might be able to reach the author via https://github.com/gaultier/blog/issues or https://www.linkedin.com/in/philippegaultier/

view more: ‹ prev next ›

learnbyexample

0 post score
0 comment score
joined 3 years ago