First page Back Continue Last page Summary Graphics
d2u
#!/bin/bash
#
# d2u : convert files from DOS to Unix line-end convention
#
if [ "$#" -ne "2" ]
then
echo "Usage:"
echo "$0 dosfile unixfile"
echo " where 'dosfile' is an existing dos file, and"
echo " 'unixfile' is the desired output file name"
echo ""
exit 1
else
echo "converting $1 to unix file $2"
tr -d "^ M" < "$1" > "$2"
fi
-
Notes: