cvs commit: src Makefile.inc1

Dag-Erling Smørgrav des at des.no
Wed May 16 18:41:58 UTC 2007


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


More information about the cvs-all mailing list