1UUENCODE(1) 386BSD Reference Manual UUENCODE(1) 2 3NNAAMMEE 4 uuuueennccooddee, uuuuddeeccooddee - encode/decode a binary file 5 6SSYYNNOOPPSSIISS 7 uuuueennccooddee [_f_i_l_e] _n_a_m_e 8 uuuuddeeccooddee [_f_i_l_e ...] 9 10DDEESSCCRRIIPPTTIIOONN 11 UUuueennccooddee and uuuuddeeccooddee are used to transmit binary files over transmission 12 mediums that do not support other than simple ASCII data. 13 14 UUuueennccooddee reads _f_i_l_e (or by default the standard input) and writes an 15 encoded version to the standard output. The encoding uses only printing 16 ASCII characters and includes the mode of the file and the operand _n_a_m_e 17 for use by uuuuddeeccooddee. 18 19 UUuuddeeccooddee transforms _u_u_e_n_c_o_d_e_d files (or by default, the standard input) 20 into the original form. The resulting file is named _n_a_m_e and will have 21 the mode of the original file except that setuid and execute bits are not 22 retained. UUuuddeeccooddee ignores any leading and trailing lines. 23 24EEXXAAMMPPLLEESS 25 The following example packages up a source tree, compresses it, uuencodes 26 it and mails it to a user on another system. When uuuuddeeccooddee is run on the 27 target system, the file ``src_tree.tar.Z'' will be created which may then 28 be uncompressed and extracted into the original tree. 29 30 tar cf - src_tree | compress | 31 uuencode src_tree.tar.Z | mail sys1!sys2!user 32 33SSEEEE AALLSSOO 34 compress(1), mail(1), uucp(1), uuencode(5), format(5) 35 36BBUUGGSS 37 The encoded form of the file is expanded by 35% (3 bytes become 4 plus 38 control information). 39 40HHIISSTTOORRYY 41 The uuuueennccooddee command appeared in 4.0BSD. 42 434th Berkeley Distribution April 23, 1991 1 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67