Fix for the Open in New Window in Patient/Client->Patients search gui, take 2.
[openemr.git] / phpmyadmin / scripts / remove_control_m.sh
blob432c149c7ae0fdff9167377ba30ae21a536edc2f
1 #!/bin/sh
3 # $Id$
5 # Script to remove ^M from files for DOS <-> UNIX conversions
8 if [ $# != 1 ]
9 then
10 echo "Usage: remove_control_m.sh <extension of files>"
11 echo ""
12 echo "Example: remove_control_m.sh php3"
13 exit
16 for i in `find . -name "*.$1"`
17 do
18 echo $i
19 tr -d '\015' < $i > ${i}.new
20 rm $i
21 mv ${i}.new $i
22 done;