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

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Heiko Schlittermann
Data:  
Para: exim-users
Temas novos: Re: [exim] [OT] Need a little bash scripting help
Asunto: Re: [exim] Need a little bash scripting help [OT]
Marc Perkel <marc@???> (So 12 Dez 2010 20:16:36 CET):
> Thanks in advance for answering my off topic question.
>
> Looking for a simple way to use sort | uniq in a way that returns only
> those lines that are duplicate more and say 3 times. A file like:


uniq(1) understands "-c", at least the uniq I use (GNU coreutils 8.5).
The rest should be simple, you'll get each line prefixed with a count.

--
Heiko :: dresden : linux : SCHLITTERMAN.de
GPG Key 48D0359B : 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B