Removing junk characters from text files?

Kevin Cozens kcozens-qazKcTl6WRFWk0Htik3J/w at public.gmane.org
Wed Feb 9 17:15:14 UTC 2005


William O'Higgins wrote:

>I get to deal with text files from Windoze and Mac sources on a regular
>basis, and frequently they are filled with junk characters.
>
Fixing line endings (ie. removing ^M or changing ^M to ^J) can be done 
using the 'tr' command. It could also be used to remove your other 
unwanted characters if you knew what they were or just gave it a list of 
what you want to remove.

--
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