John-Mark Gurney <gurney_j at resnet.uoregon.edu> 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 - des at des.no