This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: uniq not working


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]