From: Herbert Xu Date: Sat, 21 May 2005 10:37:56 GMT Subject: Re: [PATCH] Fix use of wc in t0000-basic Message-ID: In-Reply-To: Daniel Barkalow wrote: > > - 'test "$(wc -l full-of-directories | sed -e "s/ .*//")" = 257' > + 'test $(cat full-of-directories | wc -l) = 257' You don't need the cat: wc -l < full-of-directories will do the same thing. It's also better to use -eq instead of = since you are comparing numbers, not strings. If you do that you can keep the double quotes since the spaces will be removed automatically. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt