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: Paul Jarc
Subject: Re: uniq ignore blank lines?
Date: Tue, 27 Dec 2005 00:57:15 -0500
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

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




reply via email to

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