Files
phpmyadmin/remove_control_m.sh
Marc Delisle ff88ad4832 new script
2001-07-15 19:36:28 +00:00

19 lines
263 B
Bash
Executable File

#!/bin/sh
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;