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

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Dave Lugo
Data:  
Para: exim-users
Assunto: 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.
--------------------------------------------------------