Files
phpmyadmin/scripts/remove_control_m.sh
Marc Delisle 609d38a9cd start QA_11
2007-07-18 15:55:11 +00:00

24 lines
338 B
Bash
Executable File

#!/bin/sh
#
# $Id$
#
# Script to remove ^M from files for DOS <-> UNIX conversions
#
if [ $# != 1 ]
then
echo "Usage: remove_control_m.sh <extension of files>"
echo ""
echo "Example: remove_control_m.sh php3"
exit
fi
for i in `find . -name "*.$1"`
do
echo $i
tr -d '\015' < $i > ${i}.new
rm $i
mv ${i}.new $i
done;