chkconfig --list | grep 3:on
chkconfig --list | grep 5:on
chkconfig --list | grep 3:off | awk '{printf "chkconfig %s on\n",$1}'
chkconfig --list | grep 3:on | awk '{printf "chkconfig %s off\n",$1}'
edit