[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Turning CR into LF in text file



Thanks for everyone's help. I found this (a variant on Geoffrey's soln) to
work the best for me:

tr -s '\015' '\012' < file_w_CRs_but_no_LFs > file_w_LFs_for_UNIX

On Wed, Dec 06, 2000 at 01:17:02PM -0500, Wandered Inn wrote:
> Fulton Green wrote:
> > 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
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.