Re: [exim] Need a little bash scripting help [OT]

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Dave Lugo
日付:  
To: exim-users
題目: Re: [exim] Need a little bash scripting help [OT]
On Sun, 12 Dec 2010, Brett Parker wrote:
>
> $ cat test.txt | sort | uniq -c | while read line; do count=${line% *}; if
> [ $count -ge 3 ]; then echo ${line/*$count /}; fi; done
> four
> three
> $


uniq -c < crap| grep -v ^' '.*[12]' '

-- 
--------------------------------------------------------
  Dave Lugo     dlugo@???      No spam, thanks.
  Are you the police?  . . .  No ma'am, we're sysadmins.
--------------------------------------------------------