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

Góra strony
Delete this message
Reply to this message
Autor: Dave Lugo
Data:  
Dla: exim-users
Temat: 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.
--------------------------------------------------------