[Gllug] sort & uniq

Christian Smith csmith at micromuse.com
Tue Aug 5 11:37:04 UTC 2003


On Tue, 5 Aug 2003, Daniel Andersson wrote:

>
>that was the problem
>thank you very much (and to all the other ones that found it as well :)
>
>may i ask how you found the \r?

$ sort testfile | uniq -c > file
$ vi file

The \r was shown as a ^M on the end of the line. od -c would have also 
found the \r.

Once we knew what the dodgy character was, it was a simple case of finding 
it in the origional file.

>
>ta
>
>/ d
>
>

-- 
"You have not converted a man because you have silenced him." -John Morley

----------------------------------------------------------------------
    /"\ 
    \ /    ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL 
     X                           - AGAINST MS ATTACHMENTS
    / \ 


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list