src/FOLP/change
author clasohm
Thu Sep 16 12:20:38 1993 +0200 (1993-09-16)
changeset 0 a5a9c433f639
permissions -rwxr-xr-x
Initial revision
clasohm@0
     1
#! /bin/sh
clasohm@0
     2
#
clasohm@0
     3
# Usage:
clasohm@0
     4
#    expandshort FILE1 ... FILEn
clasohm@0
     5
#
clasohm@0
     6
#  leaves previous versions as XXX~~
clasohm@0
     7
#
clasohm@0
     8
for f in $*
clasohm@0
     9
do
clasohm@0
    10
echo Expanding shorthands in $f. \ Backup file is $f~~
clasohm@0
    11
mv $f $f~~; sed -e '
clasohm@0
    12
s/PFOL/FOLP/g
clasohm@0
    13
s/PIFOL/IFOLP/g
clasohm@0
    14
s/pfol/folp/g
clasohm@0
    15
s/pifol/ifolp/g
clasohm@0
    16
' $f~~ > $f
clasohm@0
    17
done
clasohm@0
    18
echo Finished.