]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda_delta/replace.sh
refactoring completed!
[helm.git] / matita / matita / contribs / lambda_delta / replace.sh
1 #!/bin/sh
2 for MA in `find -name "*.ma"`; do
3    echo ${MA}; sed "s/$1/$2/g" ${MA} > ${MA}.new
4    if diff ${MA} ${MA}.new > /dev/null; 
5       then rm -f ${MA}.new; else mv -f ${MA}.new ${MA}; fi
6 done
7
8 unset MA