| author | wenzelm | 
| Fri, 19 Dec 1997 12:16:32 +0100 | |
| changeset 4457 | 6e6d99e06d0c | 
| parent 0 | a5a9c433f639 | 
| permissions | -rwxr-xr-x | 
| 0 | 1  | 
#! /bin/sh  | 
2  | 
#  | 
|
3  | 
# Usage:  | 
|
4  | 
# expandshort FILE1 ... FILEn  | 
|
5  | 
#  | 
|
6  | 
# leaves previous versions as XXX~~  | 
|
7  | 
#  | 
|
8  | 
for f in $*  | 
|
9  | 
do  | 
|
10  | 
echo Expanding shorthands in $f. \ Backup file is $f~~  | 
|
11  | 
mv $f $f~~; sed -e '  | 
|
12  | 
s/PFOL/FOLP/g  | 
|
13  | 
s/PIFOL/IFOLP/g  | 
|
14  | 
s/pfol/folp/g  | 
|
15  | 
s/pifol/ifolp/g  | 
|
16  | 
' $f~~ > $f  | 
|
17  | 
done  | 
|
18  | 
echo Finished.  |