Slight revision to the shar routine
bet at ecsvax.UUCP
bet at ecsvax.UUCP
Wed Jul 4 05:31:16 AEST 1984
A fantastically simple routine. I like it. Our news program doesn't.
The "~FUNKY STUFF~" looks like an unsuccessful effort at a "~" escape
to our news program. Oh well. The following works on our system.
----------------------------------------------------------------------
: Create a shell that can be run to extract a bunch of files.
echo ": This is a shar archieve. Extract with sh, not csh."
echo ": The rest of this file will extract:"
echo ":" "$*"
for file
do
echo "echo extracting - $file"
echo "sed 's/^X//' > $file << '/*EOF'"
/bin/cat $file | sed 's/^/X/'
echo "/*EOF"
done
----------------------------------------------------------------------
Bennett Todd
...{decvax,ihnp4,akgua}!mcnc!ecsvax!bet
More information about the Comp.sources.unix
mailing list