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