Manual Reference Pages - SNSPLIT (8)
snsplit - split an article stream into individual articles
snsplit reads an article stream from descriptor 0 and splits it into separate
prog... on each, with the article avaiable on descriptor 0. This is useful
as a quick-and-dirty way of filtering an article stream.
The incoming article stream is expected to be in wire format, with
lines ending in CRLF, leading dots doubled, and
delimited by a dot on a line by itself.
The article presented to
prog... will have lines that end in a bare newline, will have all header
lines unfolded, leading dots will be unstuffed, and the article
will be terminated by end-of-file.
is the program (with arguments) to run on each article. If
prog... exits with any kind of failure,
are optional header field names. If these are specified, the value
of the first header field of that name will be exported into the
field... list must be terminated by the hyphen. See also
Expect input articles in rnews batch format instead.
snsplit sets some environment variables. If the environment already
contains these variables, they will be overwritten.
If already set to a positive value, it is incremented for the first
article. If it isnt set, is set to one for the first
article. Thereafter it is incremented for each subsequent article.
The value is always a 6-digit number with leading zeroes, and it can
contains the size of the current article.
The number of lines in the head of the article, excluding the blank
The number of lines in the body of the article, excluding the blank
fields are specified on the command line, where
field is the name of an article header field, then
FLD_FIELD will be set to the value of
FIELD is the same as
field but with lower case characters changed to upper case, and all
hyphens changed to underscores. Confusing? If
FLD_MESSAGE_ID will be set to the value of the first Message-ID field in the
current article, if there is one.
snsplit exits 0 on success, 1 on usage error, 2 on system error, and 3 on
article format error. If
prog... exits with other than 0,
snsplit will also exit that value.
|N.B. ||SNSPLIT,V0.3.8 (8) ||Harold Tay |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.