Re:A Practical Guide to Linux Commands, Editors, and Shell P...
by CO-VAX on Monday May 29, 2017 @11:09AM
(#14439479)
Here is another excellent resource for AWK, written by William Shotts, the author of "The Linux Command Line" http://linuxcommand.org/lc3_adv_awk.php
The first chapter is kinda dull for me, as an experienced Linux user. But scrolling through, I quickly came upon sed, which I glanced through and taught me some new things. I won't remember it all, but I'll know what I can use sed for. (I usually only used sed for substitution, with `-i`nline or in a pipe.)
I've always meant to learn more about awk, and ctrl+f'ing for that, indeed, chapter 12 is all about awk. I learned how to select rows based on columns, which I've wanted to do multiple times in the past! E.g. `awk '$2 <= 100' testfile` or `awk '$2 ~ /database/' error.log`.
It's practical in the sense that, if you have a topic you want to learn about and need a good tutorial to get started, this seems like a very good place to start.