Darren - Wonderful Awk

New About Yours API Help
674 bytes, Plain text
1
2
3
4
5
6
7
8
9
 once did a presentation, for my local LUG in Leeds, UK, on what could be done with awk.
I started with a code fragment
while(!feof(stdin)){
        gets(buffer);
        if(funky_test_on(buffer))do_funky_process();
         else throw_wobbler();}
I asked my audience if they had had too much of that code fragment in C and proceeded to show what I had been doing with awk for the previous few weeks.
I had the usual log summariser, but using awk functions to break down a complex test into several simpler ones.
I also had a  go at intelligent process control. (read killing a non-working music player that was annoying me at the time), naturally this did not work.
Pasted 2 months ago — Expires in 304 days
URL: http://dpaste.com/0YCS4DN