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]
Byte sized tech know-how.
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]
Copyright © 2024 Txt