Reddit reviews The AWK Programming Language
We found 6 Reddit comments about The AWK Programming Language. Here are the top ones, ranked by their Reddit score.
We found 6 Reddit comments about The AWK Programming Language. Here are the top ones, ranked by their Reddit score.
10000 limit again. Reserving this comment for the Programming section:
PROGRAMMING
Gray Hat Python: Python Programming for Hackers and Reverse Engineers
Beginning Python
The Python Standard Library by Example (Developer's Library)
Shell Scripting
Shell Scripting Recipes: A Problem-Solution Approach
Linux Command Line and Shell Scripting Bible, Second Edition
Wicked Cool Shell Scripts
sed & awk (2nd Edition)
The Ruby Programming Language
Beginning Ruby: From Novice to Professional
Ruby on Rails 3 Tutorial: Learn Rails by Example
Agile Web Development with Rails
Automating Microsoft Windows Server 2008 R2 with Windows PowerShell 2.0
Pragmatic Guide to Subversion
Programming Perl
C++ Primer Plus
The AWK Programming Language thanks sjhill
Modern Perl thanks three18ti
High-Order Perl thanks three18ti
The Art of Scalability thanks mr_chip
Scalability Rules thanks mr_chip
Continuous Delivery thanks mr_chip
The Varnish Book thanks mr_chip
if you are going to be programming awk, you need to get the book on it from A, W and K. Once you get a grasp of how AWK processes files, I think you'll go clear from there.
One Book
This is still the definitive work on the subject.
If you're open to learning a little
awk
, it can handle this in a breeze with a one-liner:awk '/^\s*$/{next}{arr[$1]++}END{for (a in arr) print a, arr[a]}' test.log
Breaking it down:
/^\\s*$/{next}
means if the line is empty, ignore it{arr[$1]++}
means make an array that holds your counts. `$1` means the first fieldNR>1{arr[$1]++}
END{for (a in arr) print a, arr[a]}
means at the end of processing, loop through the array you made and print the resultsawk is super powerful, and a lost art. This book is a great read if you can pick up a used one.
It may be hard to find but The AWK programming language is good, but from late 1980s:
http://www.amazon.com/AWK-Programming-Language-Alfred-Aho/dp/020107981X/ref=sr_1_3/179-0702435-4816249?ie=UTF8&qid=1457304935&sr=8-3&keywords=awk
I've started with Unix for Poets. It's pretty good =)
http://web.stanford.edu/class/cs124/kwc-unix-for-poets.pdf
There are books on this. Like "The Unix Programming Environment" and "The AWK Programming Language", both books include Brian Kernighan as one of the authors, who is one of the creators of AWK and a UNIX wizard from its roots (no pun intended).