help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uniq ignore blank lines?


From: casioculture
Subject: Re: uniq ignore blank lines?
Date: 26 Dec 2005 22:23:28 -0800
User-agent: G2/0.2

Paul Jarc wrote:
> casioculture@gmail.com wrote:
> > They don't have spaces or tabs. But the od -c showed me \r and \n. The
> > editor is scite on windows.
>
> Presumably every line ends with \r\n, so you want only the lines with
> at least two characters (including \r, but not \n):
>
> grep .. file | sort | uniq -c -d | sort -r
> 
> 
> paul

Thanks, this worked quite well. Regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]