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 21:31:49 -0800
User-agent: G2/0.2

Paul Jarc wrote:
> casioculture@gmail.com wrote:
> > Paul Jarc wrote:
> >> grep . file | sort | uniq -c -d | sort -r
> >
> > Hi, this doesn't make a difference. I get exactly the same output.
>
> Then your lines are not completely empty - they probably contain some
> spaces or tabs.  You can still remove those lines with grep if you use
> the right regular expression.  You can use "od -c" to see exactly what
> characters are on those lines.
>
>
> paul

They don't have spaces or tabs. But the od -c showed me \r and \n. The
editor is scite on windows.



reply via email to

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