]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda_delta/replace.sh
- we introduced the pointer_step rc in the perspective of proving
[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; 
6       else mv -f ${MA} ${MA}.old; mv -f ${MA}.new ${MA};
7    fi
8 done
9
10 unset MA