learnbyexample

joined 2 years ago
 

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

Not my site, just sharing a link I saw on HN.

[–] learnbyexample@programming.dev 2 points 4 months ago (1 children)

I'm not the site author, just submitting the link.

Not sure which part you need to be logged in to view - I'm seeing links to different articles and exercises and they are all visible without logging (I checked in an incognito window).

[–] learnbyexample@programming.dev 1 points 9 months ago (1 children)

Not my blog, just sharing it here.

That said, I don't see that broken rectangle on Chromium.

See also: https://github.com/pllk/cphb (Competitive Programmer's Handbook)

[–] learnbyexample@programming.dev 6 points 1 year ago (1 children)

I have a list of curated resources here: https://learnbyexample.github.io/py_resources/

There are sections for beginners, intermediate, advanced, etc. Also included are exercises, projects, debugging, testing, and many more stuff. Hope it helps :)

See also: https://jimbly.github.io/regex-crossword/

For Python, I wrote a TUI app with 100+ interactive exercises: https://github.com/learnbyexample/TUI-apps/blob/main/PyRegexExercises (covers both re and regex modules)

It's the name of the constructor, for example:

const pat1 = new RegExp(`42//?5`)

So, I used that in the book name.

[–] learnbyexample@programming.dev 8 points 2 years ago (1 children)

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 9 points 2 years ago* (last edited 2 years ago)

I start my search string with stackoverflow as a workaround.

view more: next ›