awk

Tips and Tricks

Use awk to print a specific column
chkconfig --list |grep "3:on" |awk '{print $1}'
awk '{ print $NF }'
awk '{ sum += $1 } END { print sum }' filename