[ale] FAQ alert: Losing ^M
Michael D. Hirsch
mdhirsch at mail.com
Tue May 7 16:42:23 EDT 2002
Joseph A Knapka writes:
> Can someone please remind me of the name of the
> "translate character" command? I need to lose carriage
> returns from a file I brought over from a Winders box.
The best solution I know is to install recode. Then put these two
aliases in your .bashrc:
alias dos2unix='recode ibmpc..lat1'
alias unix2dos='recode lat1..ibmpc'
recode can do a heck of a lot more recodings than these two.
--Michael
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list