Archive for May 11th, 2007

Using Awk

Simple uses for awk

Get the second column from the output

ps aux | awk '{print $2}'

Use a different column separator

cat /etc/passwd|awk '{print $1}'

[tags]awk,cli,linux,command,filter,text[/tags]