#!/bin/sh
#
# This script executes that stream editor command to remove all ^M characters
# from a file. It takes two arguments, the name of the input file followed by
# the name of the output file.
#
if test "$*" = "" ; then
    echo 'Usage: fix_dxf f1 f2'
    echo '       f1 (input)  : dxf file with ctl-M at the end of line'
    echo '       f2 (output) : clean dxf file without ctl-M'
    exit
fi

echo 'Removing ^M characters from' $1
sed s/
// $1 > $2
echo 'Done.'
