* new script create-release.sh
* moved scripts to a new subdirectory "scripts/"
This commit is contained in:
18
scripts/remove_control_m.sh
Executable file
18
scripts/remove_control_m.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# != 1 ]
|
||||
then
|
||||
echo "Usage: remove_control_m.sh <extension of files>"
|
||||
echo ""
|
||||
echo "Example: remove_control_m.sh php3"
|
||||
exit
|
||||
fi
|
||||
|
||||
for i in `find . -name "*.$1"`
|
||||
do
|
||||
echo $i
|
||||
tr -d '\015' < $i > ${i}.new
|
||||
rm $i
|
||||
mv ${i}.new $i
|
||||
done;
|
||||
|
Reference in New Issue
Block a user