1megatron(1) Netatalk megatron(1)
2
3
4
6 megatron, unhex, unbin, unsingle, hqx2bin, single2bin, macbinary - Mac‐
7 intosh file format transformer
8
10 megatron [sourcefile]...
11
12 unbin [sourcefile]...
13
14 unhex [sourcefile]...
15
16 unsingle [sourcefile]...
17
18 hqx2bin [sourcefile]...
19
20 single2bin [sourcefile]...
21
22 macbinary [sourcefile]...
23
25 megatron is used to transform files from BinHex, MacBinary, AppleSin‐
26 gle, or netatalk style AppleDouble formats into MacBinary or netatalk
27 style AppleDouble formats. The netatalk style AppleDouble format is the
28 file format used by afpd, the netatalk Apple Filing Protocol (Apple‐
29 Share) server. BinHex, MacBinary, and AppleSingle are commonly used
30 formats for transferring Macintosh files between machines via email or
31 file transfer protocols. megatron uses its name to determine what type
32 of tranformation is being asked of it.
33
34 If megatron is called as unhex , unbin or unsingle, it tries to convert
35 file(s) from BinHex, MacBinary, or AppleSingle into AppleDouble format.
36 BinHex is the format most often used to send Macintosh files by e-mail.
37 Usually these files have an extension of ".hqx". MacBinary is the for‐
38 mat most often used by terminal emulators "on the fly" when transfer‐
39 ring Macintosh files in binary mode. MacBinary files often have an
40 extension of ".bin". Some Macintosh LAN-based email packages use uuen‐
41 coded AppleSingle format to "attach" or "enclose" files in email.
42 AppleSingle files don't have a standard filename extension.
43
44 If megatron is called as hqx2bin, single2bin, or macbinary, it will try
45 to convert the file(s) from BinHex, AppleSingle, or AppleDouble into
46 MacBinary. This last translation may be useful in moving Macintosh
47 files from your afpd server to some other machine when you can't copy
48 them from the server using a Macintosh for some reason.
49
50 If megatron is called with any other name, it uses the default transla‐
51 tion, namely unhex.
52
53 If no source file is given, or if sourcefile is `-', and if the conver‐
54 sion is from a BinHex or MacBinary file, megatron will read from stan‐
55 dard input.
56
57 The filename used to store any output file is the filename that is
58 encoded in the source file. MacBinary files are created with a ".bin"
59 extension. In the case of conflicts, the old file is overwritten!
60
62 afpd(8)
63
64
65
66
672.0.3 8 Jan 1992 megatron(1)