| From: "Sharpe, Sam J" <sam.sharpe+lists.redhat@xxxxxxxxx> | runlevel=$(/bin/awk -F ':' '($3 == "initdefault") && ($1 !~ /(#|;)/) { print $2 }' /etc/inittab) Probably you meant ($1 !~ /^(#|;)/) Simpler, I think: runlevel=`/bin/awk -F ':' '/^[^#;]/ && ($3 == "initdefault") { print $2 }' /etc/inittab` -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines