[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] FAQ alert: Losing ^M
- Subject: [ale] FAQ alert: Losing ^M
- From: mdhirsch at mail.com (Michael D. Hirsch)
- Date: Tue, 7 May 2002 16:42:23 -0400
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.