13.3.1. Program Notes for combine
This one is pretty obvious but accomplishes a lot.
For those who might not understand the use of this command, here is the
explanation. A Usenet newsgroup such as comp.binaries.ibm.pc
distributes public-domain programs and such. Binaries, the object
code created by the compiler, cannot be distributed as news
articles unless they are
"encoded." A program named uuencode
converts the binary to an ASCII representation that can be easily
distributed.
Furthermore, there are limits on the size of
news articles and large binaries are broken up into a series of
articles (1 of 3, 2 of 3, 3 of 3, for example).
Dhesi would break up the encoded binary into manageable chunks, and
then add the BEGIN and END lines to delimit the text that
contained encoded binary.
A reader of these articles might save each article in a file.
Dhesi's script automates the process of combining
these articles and removing extraneous information such as the
article header as well as the extra BEGIN and END headers. His
script removes lines
from the first END up to and including the next BEGIN pattern.
It combines all the separate encoded parcels and directs
them to uudecode, which converts the ASCII representation to binary.
One has to appreciate the amount of manual editing work avoided
by a simple one-line script.