5 ms·
AWK is such an amazing tool
by lordleft 7y ago
AWK is such an amazing tool
- coliveira 7y agoAwk is the most useful tool that people largely ignore in the UNIX tool chest. If you think of any script that has simple logic and involves transformations on input data, it could be more easily written in awk and integrated with the shell. After learning awk your UNIX abilities will increase exponentially.
- mooreds 7y agoI found this article to be really great for outlining all the capabilities of awk: https://developer.ibm.com/tutorials/l-awk1/ https://developer.ibm.com/tutorials/l-awk1/ From 2001.
- fian 7y agoSeconded, and the follow up articles: https://developer.ibm.com/tutorials/l-awk2/ https://developer.ibm.com/tutorials/l-awk2/ https://developer.ibm.com/tutorials/l-awk3/ https://developer.ibm.com/tutorials/l-awk3/ These were mentioned but not linked to in the previous form of the article/blog, had a quick look at the newer version you linked to and that may still be the case. A lot of the Awk info I had found prior to stumbling on these articles was focused on command line one-liners. So the sections on defining Awk scripts as files and multiline records were a great help to me.