DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦d313c08c4⟧ TextFile

    Length: 360 (0x168)
    Types: TextFile
    Names: »prepend-header«

Derivation

└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
    └─⟦cc8755de2⟧ »./libg++-1.36.1.tar.Z« 
        └─⟦23757c458⟧ 
            └─⟦this⟧ »libg++/proto-kit/prepend-header« 

TextFile

#!/bin/csh

# 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