Trace: • awk
chkconfig --list |grep "3:on" |awk '{print $1}'
awk '{ print $NF }'
awk '{ sum += $1 } END { print sum }' filename