uniq not working

Andrey Repin anrdaemon@yandex.ru
Tue Oct 11 14:33:00 GMT 2016


Greetings, Henry S. Thompson!

> You may find the following bash function useful:

> sus () 
> { 
>     sort "$@" | uniq -c | sort -k1nr,1
> }

Why not sort -u ?

> With you data:

>> sus u.txt

>       2 1
>       2 2
>       2 3
>       1 4
>       1 5
>       1 6
>       1 7
>       1 8

> ht


-- 
With best regards,
Andrey Repin
Tuesday, October 11, 2016 17:18:39

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list