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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dave Lugo
Date:  
À: exim-users
Sujet: 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.
--------------------------------------------------------