Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2007 20:41:53 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Cc:        Alexander Leidinger <Alexander@Leidinger.net>, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src Makefile.inc1
Message-ID:  <867ir8k3v2.fsf@dwp.des.no>
In-Reply-To: <20070516160713.GC4602@funkthat.com> (John-Mark Gurney's message of "Wed\, 16 May 2007 09\:07\:13 -0700")
References:  <200705131815.l4DIFop9026874@repoman.freebsd.org> <20070514154040.0lofzrgm8kskgog4@webmail.leidinger.net> <86wszbqxbz.fsf@dwp.des.no> <20070514172938.5v4yi78kisokk84s@webmail.leidinger.net> <861whiy5ra.fsf@dwp.des.no> <20070516094330.dkp2e41vdc0w8kg8@webmail.leidinger.net> <86mz052nbz.fsf@dwp.des.no> <20070516160713.GC4602@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
John-Mark Gurney <gurney_j@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
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?867ir8k3v2.fsf>