script to remove control M from files that Windows editors add to the end of every line
#!/bin/ksh
if [ "$1" = "" ]
then echo ""
echo "Parm 1 FileName (required)"
echo ""
return
else FileName="$1"
fi
cat ${FileName} | sed 's/.$//g' > ${FileName}.txt
chmod 770 ${FileName}.txt
mv ${FileName}.txt ${FileName}
if [ "$1" = "" ]
then echo ""
echo "Parm 1 FileName (required)"
echo ""
return
else FileName="$1"
fi
cat ${FileName} | sed 's/.$//g' > ${FileName}.txt
chmod 770 ${FileName}.txt
mv ${FileName}.txt ${FileName}