[SunHELP] data manipulation

Bill Bradford sunhelp at sunhelp.org
Tue Nov 28 01:26:38 CST 2000


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



More information about the SunHELP mailing list