uuencode 1.3 KB

123456789101112131415161718192021222324252627282930
  1. #------------------------------------------------------------------------------
  2. # uuencode: file(1) magic for ASCII-encoded files
  3. #
  4. # GRR: the first line of xxencoded files is identical to that in uuencoded
  5. # files, but the first character in most subsequent lines is 'h' instead of
  6. # 'M'. (xxencoding uses lowercase letters in place of most of uuencode's
  7. # punctuation and survives BITNET gateways better.) If regular expressions
  8. # were supported, this entry could possibly be split into two with
  9. # "begin\040\.\*\012M" or "begin\040\.\*\012h" (where \. and \* are REs).
  10. 0 string begin\040 uuencoded or xxencoded text
  11. # btoa(1) is an alternative to uuencode that requires less space.
  12. 0 string xbtoa\ Begin btoa'd text
  13. # ship(1) is another, much cooler alternative to uuencode.
  14. # Greg Roelofs, newt@uchicago.edu
  15. 0 string $\012ship ship'd binary text
  16. # bencode(8) is used to encode compressed news batches (Bnews/Cnews only?)
  17. # Greg Roelofs, newt@uchicago.edu
  18. 0 string Decode\ the\ following\ with\ bdeco bencoded News text
  19. # BinHex is the Macintosh ASCII-encoded file format (see also "apple")
  20. # Daniel Quinlan, quinlan@yggdrasil.com
  21. 11 string must\ be\ converted\ with\ BinHex BinHex binary text
  22. >41 string x \b, version %.3s
  23. # GRR: is MIME BASE64 encoding handled somewhere?