🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #29225

Uudecoding on UN*X (was Re: GULAM PROBLEMS)

#29225
From: Paul Close
Date: Mon, 16 Nov 1987 03:53
47 lines
2456 bytes
In article <4433@well.UUCP> dhawk@well.UUCP (David Hawkins) writes:
>Yup.  I saved all three parts to one file.  Edited it with vi
>and removed the header of the first part.  Searched for the
>line that started with  include 
>and deleted it down to the table line of the second part and
>make it seamless, i.e.  all lines starting with   X
>and did the same connecting the second part to the third part.
>so when I finished the whole file looked the same (after the
>first table header) with each line starting with the same character.
>Ran uudecode on it.
>-- 
>David Hawkins       {ptsfa,hplabs,ucbvax}!well!dhawk
>It is a luxury to be understood.   - Ralph Waldo Emerson -

I like to uudecode the files on the host UN*X machine, and then transfer
the arc files directly (takes less time...).  Since each part is
surrounded by News garbage, they have to be fitted together as described
above.  The editor method gets pretty tiring when you get 11 part archives!!
Here's what I do: First save each part in it's own file such that * will
reference the files in correct order (I use the part number 01, 02,...).
Then run this shell script with the files as arguments:
csh:
	#!/bin/csh
	file=$1
	sed -e '1,/^@ABCDEFG/d' -e '/^include/,$d/ $file > x.uue
	shift
	foreach file ($*)
	    sed -e '1,/^begin/d' -e '/^include/,$d/ $file >> x.uue
	end
	exit
ksh/sh:
	#!/bin/sh
	file=$1
	sed -e '1,/^@ABCDEFG/d' -e '/^include/,$d/ $file > x.uue
	shift
	for file in *
	    do sed -e '1,/^begin/d' -e '/^include/,$d/ $file >> x.uue
	done
	exit

Now run uudecode on ``x.uue''.  This works like a charm, and saves much
editing!!
-- 
Paul Close		paul@cacilj.CTS.COM 	...!{uunet, crash}!cacilj!paul

Shaw's Principle:
  Build a system that even a fool can use, and only a fool will want to use it.
Technical Details
Message-ID: <463@cacilj.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!sdcsvax!ucsdhub!jack!man!crash!cacilj!paul
References: <2104@homxc.UUCP> <4433@well.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!sdcsvax!ucsdhub!jack!man!crash!cacilj!paul
From: paul@cacilj.UUCP (Paul Close)
Newsgroups: comp.sys.atari.st
Subject: Uudecoding on UN*X (was Re: GULAM PROBLEMS)
Message-ID: <463@cacilj.UUCP>
Date: Sun, 15-Nov-87 22:53:15 EST
Article-I.D.: cacilj.463
Posted: Sun Nov 15 22:53:15 1987
Date-Received: Wed, 18-Nov-87 01:37:21 EST
References: <2104@homxc.UUCP> <4433@well.UUCP>
Reply-To: paul@cacilj.UUCP (Paul Close)
Organization: CACI, Inc. - Federal, La Jolla, CA
Lines: 47
Summary: An easy way using 'sed'