[ale] Turning CR into LF in text file

Wandered Inn esoteric at denali.atlnet.com
Wed Dec 6 13:17:02 EST 2000


Fulton Green wrote:
> 
> Stupid question, but what the hey:
> 
> Someone emailed me a PageMaker document that they had converted to HTML.
> The HTML attachment contains a bunch of carriage returns (^M) w/o the
> corresponding linefeeds (^J). How do I convert for UNIX-style consumption?

I think I'm going to put this in my sig. :)

tr -d '\015' < dos_formatted_file >  unix_formatted_file

--
Until later: Geoffrey		esoteric at denali.atlnet.com

"Great spirits have always found violent opposition from mediocre minds.
The
latter cannot understand it when a man does not thoughtlessly submit to
hereditary prejudices but honestly and courageously uses his
intelligence."
- Albert Einstein
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list