shell archiver wanted - (nf)

John Quarterman jsq at ut-sally.UUCP
Sun Feb 26 03:41:31 AEST 1984


The body of this article is a Bourne shell command (shar) to combine
text files into a shar archive that can be extracted by running
it as a Bourne shell command (i.e., "sh archive-file").

separator='!Funky!Stuff!'
echo ': This is a shar archive.  Extract with sh, not csh.'
for f in $*
do
	echo "echo x - $f"
	echo "cat > $f << '$separator'"
	cat $f
	echo "$separator"
done
-- 
John Quarterman, CS Dept., University of Texas, Austin, Texas
jsq at ut-sally.ARPA, jsq at ut-sally.UUCP, {ihnp4,seismo,ctvax}!ut-sally!jsq



More information about the Comp.sources.unix mailing list