home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 7
/
FreshFishVol7.bin
/
bbs
/
gnu
/
libg++-2.6-fsf.lha
/
libg++-2.6
/
libg++
/
proto-kit
/
prepend-header
< prev
next >
Wrap
Text File
|
1991-06-28
|
365b
|
30 lines
#!/bin/csh -f
# usage: prepend file string1 ... stringn
#
if ($#argv < 2) then
echo incorrect usage ; exit 1;
endif
set FILE = $1; shift;
set TMP = /tmp/prepend.$$
if (!(-r $FILE)) then
echo file $FILE not found ; exit 1;
endif
set DUMMY = 0
while ($DUMMY < $#argv)
@ DUMMY++
echo "$argv[$DUMMY]" >>& $TMP
end
cat $FILE >> $TMP
cp $TMP $FILE
rm -f $TMP