leading comments

Keith Waclena keith at gargoyle.UUCP
Tue Aug 20 03:15:28 AEST 1985


In article <318 at luke.UUCP> itkin at 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 at UChicago.CSNet
Graduate Library School                ARPA:     keith at UChicago.ARPA
University of Chicago                  Bitnet:	 kdw1%sphinx at uchicago.bitnet



More information about the Comp.sources.unix mailing list