"Strong Scripting Skills" - a definition? - sunday

Robert Hajime Lanning lanning at lanning.cc
Mon Jan 26 16:51:58 PST 2004


<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}}'

Things are not always as easy as they sound.  :)

This, of course, assumes (very badly) that you don't want to kill an awk process.

-- 
END OF LINE
       -MCP




More information about the Baylisa mailing list