grep awk sort
- Angelo Schalley
- May, 04, 2010
- Linux
- No Comments
Print second column and sort
ifconfig -a | grep 192.168 | awk ‘{print $2}’ | sort
Print seconf column with extra text
ifconfig -a | grep 192.168 | awk ‘{print “some text” $2 “more text”}’ | sort