Section: Maintenance Commands (8)Updated: Harold TayLocal indexUp
snsplit - split an article stream into individual articles
reads an article stream from descriptor 0 and splits it into separate
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
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
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
list must be terminated by the hyphen. See also
Expect input articles in rnews batch format instead.
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 isn't 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
are specified on the command line, where
is the name of an article header field, then
will be set to the value of
is the same as
but with lower case characters changed to upper case, and all
hyphens changed to underscores. Confusing? If
will be set to the value of the first Message-ID field in the
current article, if there is one.
exits 0 on success, 1 on usage error, 2 on system error, and 3 on
article format error. If
exits with other than 0,
will also exit that value.