~hexmode/+junk/main

« back to all changes in this revision

Viewing changes to install-files/apps/phpmyadmin2.10.1/scripts/remove_control_m.sh

  • Committer: Mark A. Hershberger
  • Date: 2008-01-05 19:38:56 UTC
  • Revision ID: hershberger@spawn-xp-20080105193856-6rnzgwa4nehue3qj
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# $Id: remove_control_m.sh 5152 2003-11-18 15:20:45Z nijel $
 
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