Translation update done using Pootle.
[phpmyadmin.git] / scripts / remove_control_m.sh
blob697b2d24adecd9a63ef73b0eca40bac5bdb64abe
1 #!/bin/sh
4 # Script to remove ^M from files for DOS <-> UNIX conversions
7 if [ $# != 1 ]
8 then
9 echo "Usage: remove_control_m.sh <extension of files>"
10 echo ""
11 echo "Example: remove_control_m.sh php3"
12 exit
15 for i in `find . -name "*.$1"`
16 do
17 echo $i
18 tr -d '\015' < $i > ${i}.new
19 rm $i
20 mv ${i}.new $i
21 done;