On Thu, 29 Aug 1996, Dave Wolfe wrote:
> [ Nick Halloway writes: ]
> > I am trying to gate articles from news to a moderated MD mailing list.
> [ description of steps deleted]
> > Anyone know how to do these things without writing a program?
> Don't expect much if you put that kind of restriction on it (I consider
> writing a shell script to be writing a program).
Well, what I meant was that I was hoping to avoid writing a C program, or
whatever -- something that has to be compiled. I'm trying to stick with
basic Unix commands, because I would like anyone on Unix to be able
to run my script with a minimum of effort -- just to send them a
shell script and have them pipe mail to it.
To separate header & body, it would be enough if I could locate the
first line which doesn't have a colon -- so if I can write a regular
expression to locate that line I'd be on my way. I could probably do the
rest just with basic Unix commands.