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

[ale] textfiles: dos characters.



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.