[ale] textfiles: dos characters.

sarchie at bigfoot.com sarchie at bigfoot.com
Thu Jul 6 00:06:13 EDT 2000


found a better one here:
    http://freshmeat.net/search.php3?query=hd2u

thanx anyway.


> tr -d "\015" < file.dos > file.unix
>
> this just remove all \r instances from the file.dos. \r\n --> \n.
> Well, if you do have meaningful \r in the file, (I seldom do), then you
> cannot use this.
>
> On Wed, 5 Jul 2000, Justin Russell wrote:
>
> #This script will work (I call it dos2unix):
> #
> ##!/bin/ksh
> #ex $1 << end_here
> #g/^M/s///g
> #wq
> #end_here

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list