🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #17003

Re: Binhex section delimiters

#17003
From: Earle R. Horton
Date: Wed, 24 Jun 1987 00:18
52 lines
2564 bytes
In article <1177@bgsuvax.UUCP>, denbeste@bgsuvax.UUCP (William C. DenBesten) writes:
> > (All references to binhex format are 4.0)
> 
> > When putting multi-part binhex postings together, I tend to search for
> > the string "---" since it has become a fairly standard delimiter.
> 
> > Could we adopt a new standard of '::: end of part whatever :::' for
> > delimiting sections of binhex.
> 
> what about searching for a space.  Binhex doesn't allow spaces, and

Bravo, Bill!  I tried this with the rather large posting that came over
comp.binaries.mac in eight parts (title below)

>Newsgroups: comp.binaries.mac
>Subject: Help Data Base for Macintosh Programmers (Manual part 1 of 8)

Here's what I did (this really works!).

a)  Save the eight parts of the manual in macman.[1-8] in a new 
    directory
b)  shell commands:

   set filec
   cat macman.1 macman.2 macman.3 macman.4 macman.5 macman.6 macman.7 \
      macman.8 | sed -n -e '/ /d' -e '/^---$/d' '/./p' > macman
   cat $HOME/thisfile macman > Macman
   xbin Macman 
   ls
   unpit Manual.pit.data
   macput ...

In summation:

i)     Granted, this took five or six tries to get it right, but that's
       still less CPU time than loading everything into a screen editor.
       (And much less user time.)
ii)    One step could have been eliminated, but I didn't have my sed
       manual handy, and don't know how to insert lines (yet).  The file 
       "thisfile" contains "(This file...)" and a blank line.
iii)   Use any delimiter you want, but please put spaces in it!
iv)    A "post mortem" on the file "macman" revealed nothing but
       raw binhex code, as far as I could tell.

Try it!  This really works!

Earle "I love sed" Horton

-- 
*********************************************************************
*Earle R. Horton, H.B. 8000, Dartmouth College, Hanover, NH 03755   *
*********************************************************************
Technical Details
Message-ID: <6525@dartvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!decvax!dartvax!earleh
References: <8867@amdahl.amdahl.com> <1177@bgsuvax.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!seismo!rutgers!ames!ucbcad!ucbvax!decvax!dartvax!earleh
From: earleh@dartvax.UUCP (Earle R. Horton)
Newsgroups: comp.sys.mac
Subject: Re: Binhex section delimiters
Message-ID: <6525@dartvax.UUCP>
Date: Tue, 23-Jun-87 20:18:20 EDT
Article-I.D.: dartvax.6525
Posted: Tue Jun 23 20:18:20 1987
Date-Received: Thu, 25-Jun-87 06:43:50 EDT
References: <8867@amdahl.amdahl.com> <1177@bgsuvax.UUCP>
Organization: Negative Entropy Research and Development Society
Lines: 52
Summary: example session included!