Re: stupid shell tricks again

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
+ (application/pgp-signature)
Slet denne besked
Besvar denne besked
Skribent: Bill Jonas
Dato:  
Til: plug-discuss
Emne: Re: stupid shell tricks again
On Mon, Mar 22, 2004 at 02:48:26PM -0700, Craig White wrote:
> for i in `cut -f1 $wdirect/users-homes`; do if [ $i > $size_plateau ];
> then `echo $i`; fi; done


I think you want '-gt' instead of '>'. > is a shell metacharacter,
remember. See test(1) for other operators and more info.

-- 
Bill Jonas    *        *    http://www.billjonas.com/
"It's a dangerous business, Frodo, going out your front door.  You step
into the Road,  and if you don't keep your feet,  there  is  no knowing
where you might be swept off to."  --  Bilbo Baggins