📄 btoa.1
字号:
.TH BTOA 1 local.SH NAMEbtoa, atob, tarmail, untarmail \- encode/decode binary to printable ASCII.SH SYNOPSIS.B btoa.br.B atob.br.B tarmailwho subject files ....br.B untarmail[ file ].SH DESCRIPTION.I Btoais a filter that reads anything from the standard input, and encodes it intoprintable ASCII on the standard output. It also attaches a header and checksuminformation used by the reverse filter .I atob to find the start of the data and to check integrity..PP.I Atobreads an encoded file, strips off any leading andtrailing lines added by mailers, and recreates a copy of the original fileon the standard output..I Atob gives NO output (and exits with an error message) if its input is garbage or the checksums do not check..PP.I Tarmailis a shell script that tar's up all the given files, pipes them through .IR compress ",".IR btoa ","and mails them to the given person with the given subject phrase. Forexample:.PP.in 1itarmail ralph "here it is ralph" foo.c a.out.in -1i.PPWill package up files "foo.c" and "a.out" and mail them to "ralph" usingsubject "here it is ralph". Notice the quotes on the subject. They arenecessary to make it one argument to the shell..PP.I Tarmail with no args will print a short message reminding you what the required args are. When the mail is received at the other end, that person should usemail to save the message in some temporary file name (say "xx").Then saying "untarmail xx"will decode the message and untar it. .I Untarmail can also be used as a filter. By using .IR tarmail ","binary files andentire directory structures can be easily transmitted between machines.Naturally, you should understand what tar itself does before you use .IR tarmail ".".PPOther uses:.PPcompress < secrets | crypt | btoa | mail ralph.PPwill mail the encrypted contents of the file "secrets" to ralph. If ralphknows the encryption key, he can decode it by saving the mail (say in "xx"),and then running:.PPatob < xx | crypt | uncompress.PP(crypt requests the key from the terminal,and the "secrets" come out on the terminal)..SH AUTHORPaul Rutter (modified by Joe Orost).SH FEATURES.I Btoauses a compact base-85 encoding so that4 bytes are encoded into 5 characters (file is expanded by 25%).As a special case, 32-bit zero is encoded as one character. This encodingproduces less output than.IR uuencode "(1).".SH "SEE ALSO"compress(1), crypt(1), uuencode(1), mail(1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -