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