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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Heiko Schlittermann
Ημερομηνία:  
Προς: exim-users
Καινούρια Θέματα: Re: [exim] [OT] Need a little bash scripting help
Αντικείμενο: 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