GNU awk idioms explained
Do you find awk
one-liners cryptic? Stuff like !a[$0]++
, 1
, $1=$1
, NR==FNR
and -v RS=
? You'll find examples and brief explanations for such idioms in this post.
learnbyexample
Do you find awk
one-liners cryptic? Stuff like !a[$0]++
, 1
, $1=$1
, NR==FNR
and -v RS=
? You'll find examples and brief explanations for such idioms in this post.
Hello!
I just published a new version of my Understanding Python re(gex)? ebook.
This book will help you learn Python Regular Expressions step-by-step from beginner to advanced levels with hundreds of examples and exercises. The standard library re
as well as the third-party regex
module are covered in this book.
You might already know how to use the --color
option to highlight matched portions with GNU grep
. In this post, you'll see how to use ANSI escape sequences to format matched portions with GNU sed
and GNU awk
.
Hello!
I am pleased to announce a new version of my 100 Page Python Intro ebook. This book is a short, introductory guide for the Python programming language. This book is well suited:
Hello!
Here are some awesome deals for programming books and courses during the 2024 festive season.
Having an interactive program that automatically loads questions and checks the solution is wonderful to have while learning a topic. This TUI app has beginner to intermediate level exercises and multiple-choice questions for Python learners.
Hello!
I am pleased to announce a new version of my Vim Reference Guide ebook. This is intended as a concise learning resource for beginner to intermediate level Vim users. It has more in common with cheatsheets than a typical text book. Topics like Regular Expressions and Macros have more detailed explanations and examples due to their complexity. I hope this guide would make it much easier for you to discover Vim features and learning resources than my own blundering experience.
Hello!
I am pleased to announce a new version of my Linux Command Line Computing ebook. This is the longest book I've published so far (204 pages) — it took me more than 7 months to complete the first version and another month for a minor revision.
This ebook aims to teach Linux command line tools and Shell Scripting for beginner to intermediate level users. The main focus is towards managing your files and performing text processing tasks. Plenty of examples are provided to make it easier to understand a particular tool and its various features. Exercises at the end of chapters will help you practice what you've learned and solutions are provided for reference. I hope this ebook would make it much easier for you to discover CLI tools, features and learning resources than my own blundering experience.
Know command line basics and want to learn the GNU awk
command? Check out my interactive TUI app that gives a brief tour of this popular text processing command.
I'm hoping this post will serve as a quick reference for some of the use cases and tickle your curiosity if you haven't come across this nifty CLI text processing tool yet. There are also links for further reading at the end.