repo.or.cz
/
phpmyadmin
/
gandalfml.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Translation update done using Pootle.
[phpmyadmin/gandalfml.git]
/
scripts
/
remove_control_m.sh
blob
697b2d24adecd9a63ef73b0eca40bac5bdb64abe
1
#!/bin/sh
2
#
3
#
4
# Script to remove ^M from files for DOS <-> UNIX conversions
5
#
6
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
13
fi
14
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
;
22