Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site boring.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!boring!ken From: ken@boring.UUCP Newsgroups: net.sources Subject: Re: leading comments Message-ID: <6589@boring.UUCP> Date: Tue, 20-Aug-85 12:22:09 EDT Article-I.D.: boring.6589 Posted: Tue Aug 20 12:22:09 1985 Date-Received: Fri, 23-Aug-85 05:43:25 EDT References: <318@luke.UUCP> Reply-To: ken@mcvax.UUCP (Amoeba #117) Distribution: net Organization: Amoeba Project, CWI, Amsterdam Lines: 16 Apparently-To: rnews@mcvax.LOCAL In article <318@luke.UUCP> itkin@luke.UUCP (Steven List) writes: >I'd like to suggest that when we put some commentary at the beginning, >each line be preceded by the shell comment character (#). This is a repost of a shell script that will solve the problem if every shar'ed source has a line beginning with # at the top of the archive. From rn I just have to say: "| (cd sourcedir; unshar)". #! /bin/sh # unshar - pipe shar part of input through sh # Ignore lines before first "#" comment starting in first column. # Input is either $1 or stdin. sed -n '/^#/,$ p' ${1-} | exec sh -- UUCP: ..!{seismo,okstate,garfield,decvax,philabs}!mcvax!ken Voice: Ken! Mail: Centrum voor Wiskunde en Informatica, Kruislaan 413, 1098 SJ, Amsterdam.