[SunHELP] data manipulation - removing ^M's
Fuerst, Robert C. (Chris)
sunhelp at sunhelp.org
Tue Nov 28 07:51:09 CST 2000
I thought the best fix for this was dos2unix?
> -----Original Message-----
> From: Bill Bradford [SMTP:mrbill at mrbill.net]
> Sent: Tuesday, November 28, 2000 2:27 AM
> To: sunhelp at sunhelp.org
> Subject: Re: [SunHELP] data manipulation
>
> On Tue, Nov 28, 2000 at 01:51:40AM -0500, Dennis L. Lund wrote:
> > I run the following script to remove the ^M:
> > #!/usr/bin/ksh
> > if [ -f $1 ]
> > then
> > tr -d '\15' < $1 >newname
> > mv newname $1
> > fi
>
> Or, this does it in VI:
>
> :%s/<ctrl-v><ctrl-m>//g<enter>
>
> bill
>
> --
> Bill Bradford
> mrbill at mrbill.net
> Austin, TX
> _______________________________________________
> SunHELP maillist - SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list