Hi Bob/John:
I have a dtox script I use on UNIX that should run on LINUX.
Here is script:
#! /bin/sh
#
# convert a DOS ASCII file to a UNIX ASCII file by removing trailing ^M
at the
# end of each line and ^Z at the end of the file
sed -e 's/^M$//' -e '/^^Z/d' -e '/^A^?$/d'
That should give you something to start with. Usage:
dtox <dosfile >unixfile
Regards, Hugh
--
Hugh E Cruickshank, Forward Software, www.forward-software.com
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of John Aldrich
> Sent: Monday, December 04, 2000 14:21
> To: [EMAIL PROTECTED]
> Subject: Re: covert dos format ascii file to unix format
>
>
> On Fri, 01 Dec 2000, Bob Hartung wrote:
> > Hi all,
> > Is there a utility to convert a basic dos ascii file to
> > the unix format that will deal with the carriage returns? I
> > thought there was a 'dostounix' program but I can't seem to
> > find it.
> >
> Yeah... you can find something like that on FreshMeat, I think. I
> can't find it currently on my hard drive... sorry.
> John
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list