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