AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.145.84.128


Current Path : /var/www/lhjmq-records.qc.ca/public_html/phpmyadmin/scripts/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/phpmyadmin/scripts/remove_control_m.sh

#!/bin/sh
#
# $Id: remove_control_m.sh,v 2.0 2003/11/18 15:20:45 nijel Exp $
#
# Script to remove ^M from files for DOS <-> UNIX conversions
#

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;