Re: stupid shell tricks again

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Jeremy C. Reed
日付:  
To: plug-discuss
題目: Re: stupid shell tricks again
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.

Jeremy C. Reed
http://bsd.reedmedia.net/

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss