uuencode 1.3 KB

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