uniq not working
Henry S. Thompson
ht@inf.ed.ac.uk
Tue Oct 11 16:02:00 GMT 2016
Andrey Repin writes:
> Greetings, Henry S. Thompson!
>
>> You may find the following bash function useful:
>
>> sus ()
>> {
>> sort "$@" | uniq -c | sort -k1nr,1
>> }
>
> Why not sort -u ?
Because then all the counts will be 1.
ht
--
Henry S. Thompson, School of Informatics, University of Edinburgh
10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail from me _always_ has a .sig like this -- mail without it is forged spam]
--
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