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

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Dave Lugo
Data:  
Para: exim-users
Asunto: 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.
--------------------------------------------------------