Trace: • awk
This is an old revision of the document!
chkconfig --list |grep "3:on" |awk '{print $1}'
awk '{ sum += $1 } END { print sum }' filename