Idem.
[UnsignedByte.git] / ub_dos2unix.sh
blob285893ab47bc5954ab5584edfb6d4c5983ff217e
1 files=`find . -name "*.cpp" -or -name "*.h"`
3 ##
4 ## fix workspace
5 ##
6 for file in $files
7 do
8 # echo fixing file $file ...
9 ## replace any windows crlf with unix lf
10 \rm -f $file.tmp
11 sed 's_\r__g' $file > $file.tmp
12 # sed 's_sverre@rabbelier.nl_Sverre@Rabbelier.nl_g' $file.tmp > $file.tmp
13 mv $file.tmp $file
14 done