src/FOLP/change
author wenzelm
Sun, 15 Oct 2000 19:50:35 +0200
changeset 10220 2a726de6e124
parent 0 a5a9c433f639
permissions -rwxr-xr-x
proper symbol markup with \isamath, \isatext; support sub/super scripts:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
#! /bin/sh
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
# Usage:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
#    expandshort FILE1 ... FILEn
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
#  leaves previous versions as XXX~~
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
for f in $*
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
do
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
echo Expanding shorthands in $f. \ Backup file is $f~~
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
mv $f $f~~; sed -e '
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
s/PFOL/FOLP/g
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
s/PIFOL/IFOLP/g
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
s/pfol/folp/g
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
s/pifol/ifolp/g
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
' $f~~ > $f
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
done
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
echo Finished.