[SunHELP] data manipulation

Dennis L. Lund sunhelp at sunhelp.org
Tue Nov 28 00:51:40 CST 2000


I run the following script to remove the ^M:

#!/usr/bin/ksh
#
# This script will remover the ^M from the end of each
# line in a file.
#
# USAGE:  rm_M_char <filename>
#

if [ -f $1 ]
then
   tr -d '\15' < $1 >newname
   mv newname $1
fi

Dennis Lund



More information about the SunHELP mailing list