[news.software.nn] Automated extraction of programs from c.b.i.p postings.

storm@texas.dk (Kim F. Storm) (07/24/90)

>elee24@castle.ed.ac.uk (H Bruce) writes:
>>Does anyone have an automated way of extracting programs from the postings in
>>comp.binaries.ibm.pc ?

mrh@camcon.co.uk (Mark Hughes) writes:
>I use the following Unix shell script with the newsreader nn (which orders
>the postings for me):

I don't understand why you need to pipe from nn to a shell script -
maybe you are using a really old nn version?

In release 6.4 of nn, you simply select *all* the articles you want to decode
(they can be for multiple multi-part packages), on all menu pages.

Then you enter :decode and the name of a directory where you want the
decoded files to be placed.  nn will then skip garbage from the header
and tail (headers are stored in Decode.Headers), concatenate the uuencoded
data, and perform the decoding storing the result in the file names specified
on the "begin" line.

To decode all articles, simply enter:

	=.(return)		selects all articles
	:decode(return)		call the decoder
	~/pc-sw			the directory where the decoded file should go.
	+			decode all selected articles

Thats it!
You can even define it in a macro and invoke it with a single key-stroke!

So to decode everything, just hit ^D (or F3 or whatever you bind it to).

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!