Removing junk characters from text files?

Stewart C. Russell scruss-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Wed Feb 9 22:14:14 UTC 2005


Lennart Sorensen wrote:
> 
> And of course dos2unix is a handy utility too.

Sure it is, but you want to be careful. I've come across two utilities, 
identically namesd 'dos2unix' and present on various different Unices, 
that purport to do the same thing. One of them quietly munged the 
'standard' MS-DOS 8-bit characters to ISO Latin-1. This is exactly not 
what we wanted.

tr may have arcane syntax, but it only does exactly what you ask of it.

  Stewart

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list