14 Feb 2006 at 12:57 #1 Clowned Clowned Associate Joined 7 Nov 2003 Posts 584 Location UK trying to find some info on the "awk" unix tool, anyone got any links or knowledge that mite be helpful? cheers
trying to find some info on the "awk" unix tool, anyone got any links or knowledge that mite be helpful? cheers
14 Feb 2006 at 12:59 #2 Borris Borris Caporegime Joined 25 Oct 2002 Posts 30,409 Here's a few that I use: Code: awk '{ FS = "DELIMITER" }{ print substr($DELIMETERS,START,LENGTH) }' FILENAME Code: ps -eaf | grep hostname| awk '{ print $3 }' Code: op | awk '{ print $1 , $10 }' | head -11 | tail -4 And I hate to be the one to say it, but: Code: man awk
Here's a few that I use: Code: awk '{ FS = "DELIMITER" }{ print substr($DELIMETERS,START,LENGTH) }' FILENAME Code: ps -eaf | grep hostname| awk '{ print $3 }' Code: op | awk '{ print $1 , $10 }' | head -11 | tail -4 And I hate to be the one to say it, but: Code: man awk
14 Feb 2006 at 13:37 #3 Clowned Clowned Associate OP Joined 7 Nov 2003 Posts 584 Location UK k, thanks. i shall keep searching. Last edited: 15 Feb 2006