repo.or.cz
/
phpmyadmin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Translated using Weblate (French)
[phpmyadmin.git]
/
scripts
/
remove_control_m.sh
blob
4f5b213c1b2d6583b8fe28d24361d92779aa0b74
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