repo.or.cz
/
phpmyadmin
/
last10db.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
3.2.5
[phpmyadmin/last10db.git]
/
scripts
/
remove_control_m.sh
blob
432c149c7ae0fdff9167377ba30ae21a536edc2f
1
#!/bin/sh
2
#
3
# $Id$
4
#
5
# Script to remove ^M from files for DOS <-> UNIX conversions
6
#
7
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
14
fi
15
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
;
23