This commit is contained in:
Marc Delisle
2009-12-31 13:11:19 +00:00
parent f3833884e4
commit 526dce65cb
894 changed files with 287313 additions and 0 deletions

23
scripts/remove_control_m.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/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;