src/FOLP/change
author wenzelm
Sun, 13 Jan 2002 21:13:59 +0100
changeset 12738 9d80e3746eb0
parent 0 a5a9c433f639
permissions -rwxr-xr-x
symbolic syntax for x^2 (faills back on plain infix "^");

#! /bin/sh
#
# Usage:
#    expandshort FILE1 ... FILEn
#
#  leaves previous versions as XXX~~
#
for f in $*
do
echo Expanding shorthands in $f. \ Backup file is $f~~
mv $f $f~~; sed -e '
s/PFOL/FOLP/g
s/PIFOL/IFOLP/g
s/pfol/folp/g
s/pifol/ifolp/g
' $f~~ > $f
done
echo Finished.