On Mon, 2004-03-22 at 14:00, Jeremy C. Reed wrote: > On Mon, 22 Mar 2004, Craig White wrote: > > > am starting. I want it to put > > directory_size = cut -f1 $wdirect/users-homes/$i > > and then > > if $size_plateau > $directory_size then 'mail' an alert > > > > This obviously is a pseudo code. My problem is that the 'cut' command > > seems to want to operate on the entire file and not a line by line. > > Use grep before the cut to just get the line you want. ---- I think I understand the grep thing...I can't get this to evaluate... for i in `cut -f1 $wdirect/users-homes`; do if [ $i > $size_plateau ]; then `echo $i`; fi; done where $size_plateau is set to a number - what's the trick? I keep getting for a result... ./chksize-users-profiles: line 6: 9444: command not found etc. Craig --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss