[Sunhelp] Copy text files from Unix to NT using PC Netlink?

Dennis L. Lund dllund at hermes.nextel.com
Mon Oct 2 12:42:15 CDT 2000


If it is the ^M that you are trying to remove, I use this script to do it:

#!/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

Hope this helps.

Dennis Lund





More information about the SunHELP mailing list