Using Awk

Tagged with: , , , , ,

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]

Leave a Reply