Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site gargoyle.UUCP
Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!harpo!whuxlm!whuxl!houxm!mhuxt!mhuxr!mhuxn!ihnp4!gargoyle!keith
From: keith@gargoyle.UUCP (Keith Waclena)
Newsgroups: net.sources
Subject: Re: leading comments
Message-ID: <157@gargoyle.UUCP>
Date: Mon, 19-Aug-85 13:15:28 EDT
Article-I.D.: gargoyle.157
Posted: Mon Aug 19 13:15:28 1985
Date-Received: Fri, 23-Aug-85 20:41:26 EDT
References: <318@luke.UUCP>
Reply-To: ihnp4!gargoyle!keith (Keith Waclena)
Distribution: net
Organization: University of Chicago, Graduate Library School
Lines: 35
Keywords: rn unshar
Summary: Use unshar instead (plus rn query)

In article <318@luke.UUCP> itkin@luke.UUCP (Steven List) writes:
>[...] 
>Most of us, when posting a source file (shell archive or otherwise), 
>usually put some nice commentary at the beginning. [...]
>
>I'd like to suggest that when we put some commentary at the beginning,
>each line be preceded by the shell comment character (#).  This would
>allow the file to be saved (at least from rn with `w') without the
>header information and processed immediately by the shell.
>[...]


The unshar program (previously posted to net.sources, I think) strips
leading commentary in a very clever way; it strips text up to a line
containing the words ``cut'' and ``here'' in that order and then runs
the rest of the file through sh. In rn you can say ``w|unshar'' to
get the results you want.

Unshar is a good companion to shar; if you can't find it locally,
send me mail and I'll see if we still have the sources here.

Now a quick question: (our) rn always prepends a line like ``Article
whatever from net.random'' whether I save via s or w. This screws our
mail program; if I say ``use mbox format'' mail won't recognize the
file as such unless I edit out that offending line.. can anyone tell
me how to get rn to leave out that line?

Thanks.
-- 

----------------------------------------------------------------------------
Keith Waclena                          uucp:     ..!ihnp4!gargoyle!keith
                                       CSNet:    keith@UChicago.CSNet
Graduate Library School                ARPA:     keith@UChicago.ARPA
University of Chicago                  Bitnet:	 kdw1%sphinx@uchicago.bitnet