Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!mcnc!ecsvax!bet From: bet@ecsvax.UUCP Newsgroups: net.sources Subject: Slight revision to the shar routine Message-ID: <2838@ecsvax.UUCP> Date: Tue, 3-Jul-84 15:31:16 EDT Article-I.D.: ecsvax.2838 Posted: Tue Jul 3 15:31:16 1984 Date-Received: Wed, 4-Jul-84 05:13:18 EDT Lines: 19 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