"Strong Scripting Skills" - a definition? - sunday

Jordan Johnson jorjohns at cs.indiana.edu
Tue Jan 27 00:07:33 PST 2004


Robert Hajime Lanning wrote:
> <quote who="Rob Windsor">
>> I always thought "grep foo | grep -v grep | awk '{print $2}'" script
>> fragments existed only because the scripter didn't know how to write
>> "awk '/foo/ {print $2}'".
>
> Then again it would be:
> awk '/foo/ {if (!/awk/) {print $2}}'

Better still... awk '$n ~ /foo/ { print $2 }' # where n is the proper 
field

I was surprised to not see that in the awkish examples flying by...

jmj

: Jordan M Johnson - jorjohns @ cs . indiana . edu
: If I were a bug, I would want to be a true Renaissance bug.




More information about the Baylisa mailing list