John-Mark Gurney <[EMAIL PROTECTED]> writes:
> ls -lo ./$${file} | awk '{ print $$5 }' | grep -qw schg

Using both grep and awk in the same pipeline is just silly...

ls -lo ./$${file} | awk '$$5 ~ /schg/ { exit 0 } { exit 1 }'

or

ls -lo ./$${file} | awk '$$5 ~ /schg/ { print $$10 }'

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to