DABE

Section: User Commands (1)
Index Return to Main Contents
 

NAME

dabe - Decode Ascii-Binary Encodings  

SYNOPSIS

dabe [ options ] [filename ...]  

DESCRIPTION

The dabe program program reads ABE Ascii-Binary encodings produced by the abe(1) program. ABE files consist only of printable characters and are designed for the safe transmission of binary data over communications channels which may alter non-printable characters. ABE files are meant to be fairly bullet-proof.

The dabe command can either read the standard input, or be given a list of files containing ABE data. If files are provided, they are concatenated together. (ABE encodings of large files are often split up into several files so that no file is too large for the communications channel. Simply pass all the files to the decoder.)

Dabe can handle files with randomly inserted lines and extraneous headers and comments. There is no need to edit a mail message with an ABE file before passing it to dabe.

Some ABE file sets are encoded in such a way that redundant information is included with each part of a split-up encoding. In this case, you can pass such sets of files to dabe in any order, and duplicates may also exist.

If redundant information is not included, you can always put an ABE encoding in order with the sort(1) program. Use "sort -u" if your set of files might contain duplicates of parts of the file. If all lines of an encoding are present and intact, then sort can always make the encoding right, no matter how much mangling has been done to it.

Say that a binary encoding has arrived on USENET, and that the encoding was done with redundant information in each part. Say that the parts arrived at your site in a random order, with other articles mixed in, and that some of the parts were reposted because they were lost in some sections of the net. If those articles ran from article 340 to article 347, you could simply say:

dabe newsgroupdir/34[0-7]
and your file would be decoded. ("newsgroupdir" represents the name of the directory where the newsgroup is stored.)

The only thing dabe are certain missing header lines and the presence of a different, independently made ABE encoding in the middle of the group of files passed to the decoder. An error message is always given if there is something wrong with the file.

It is even possible for dabe to decode an encoding that has missing or damaged blocks. Those sections of the resulting file will be blank or in error, but other sections will be correct and in place. With some types of files -- namely certain archives, this is still useful so long as the first section is not one of those missing or damaged.

Dabe writes to files as named in the encoding. If the encoding was done on the same operating system as you are using, the files will appear with their valid names, and often with permissions and modification times properly set. If the file comes from another operating system, it will be stored in the current directory according to a "universal name" defined at the time of encoding.

It is possible for several files to be combined in the same encoding. This allows the ABE system to be used as a primitive archiver. It is not possible for blocks from different files to be presented to the decoder in any order. Multiple file encodings must either be given in order, or sorted.

Some ABE files come with the source code to a tiny decoder. Do not use this if you have the full dabe decoder.  

OPTIONS

(Note that while option names are displayed here in full, only the first letter is actually required. For +/- options, using + turns the option on, and using - turns the option off.)
+stdout
Normally output is placed in files named in the encoding. You can have dabe do all output to the standard output with this option. If there are two or more files in the ABE file you are decoding, they will be concatenated together on the standard output, which is not very useful.
+ignore_errors
Certain errors, such as missing lines, missing blocks or duplicated blocks, normally terminate a decoding. It is possible to have the decoding continue to produce a partial file. Use this option to have the decoder continue after what it calls a "serious error."
-verbose
Dabe is usually quite talkative about what's going on as it decodes a file. You can turn this off by turning off verbose mode with this option.

 

ENCODING FORMAT

With ABE1, the 256 bytes are broken up into 3 sets, with 86, 86 and 84 bytes, respectively. The most common 86 bytes in the file go into set 0, and so on. 86 of the printable ASCII characters are used to encode the members of each set. Special printable escape characters switch from set to set. In ABE2, we have 4 sets of 64 bytes each.

In an ABE encoding, printable characters always map to themselves, if possible. This means that printable character strings found in binary files are still readable in an ABE encoding. You can often look at a raw ABE file and see what it is, which is quite useful. In addition, the byte 0 maps to the ASCII digit "0," and several other similar useful mappings are made.

ABE files also have header information that defines information about the encoded files, block headings, sizes and checksums. For full details on the encoding format, see the special file on that in the ABE kit.

The dabe decoder is actually very general, and it has facilities to handle arbitrary ABE-style encodings as well as ABE encased uuencode(1) encodings. It understands many header lines which are not yet used by the encoder, but which may be implemented in future.  

AUTHOR

The ABE system was written by Brad Templeton, who is brad@looking.UUCP. (Mail regarding abe should go to abe@looking.UUCP.) The tiny ABE decoder is released to the public domain. All other files are Copyright 1989 by Brad Templeton. A licence for unlimited non-commercial use of these encoders is granted. See the source code in the ABE kit for full details on the licence.

No fee is requested or required for the use of these programs. If you feel the need to show appreciation, You might order copies of the REC.HUMOR.FUNNY Computer Network Humour Annual(s) (a USENET jokebook) for 9.95 USD+S/H. Mail to jokebook@looking.UUCP or call 519/884-7473. There is no requirement to buy the jokebook in order to use these programs.  

SEE ALSO

dabe(1), sort(1), uudecode(1), ABE File Format  

VERSION

Version 1.0


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
ENCODING FORMAT
AUTHOR
SEE ALSO
VERSION

This document was created by man2html, using the manual pages.
Time: 20:13:50 GMT, January 19, 2025