2
votes
4answers
7k views

Using grep, awk, etc. to filter command output

I'll use route as an example. route -n The above outputs routing information. The top row is your active connection. I can manipulate the output to only the second column by doing: route -n | awk ...