mtimeout.1: Use correct dash for number ranges.
[misc] / gorp.1
CommitLineData
f342fce2 1.\" -*-nroff-*-
2.TH gorp 1 "9 October 2003" "Straylight/Edgeware"
3.SH NAME
4gorp \- write a short random string
5.SH SYNOPSIS
6.B gorp
22fb157c 7.RB [ \-y ]
8.RB [ \-l
9.IR length ]
10.RB [ \-f
11.IR format ]
f342fce2 12.RI [ bits ]
13.SH DESCRIPTION
14Generates
15.I bits
16random bits (must be a multiple of 8, default is 128) and writes the
22fb157c 17resulting string to standard output.
18.PP
19The following options are recognized.
20.TP
21.B "\-h, \-\-help"
22Prints a help message to standard output and exits successfully.
23.TP
24.B "\-v, \-\-version"
25Prints the program's version number to standard output and exits
26successfully.
27.TP
28.B "\-u, \-\-usage"
29Prints a really short usage summary to standard output and exits
30successfully.
31.TP
32.BI "\-f, \-\-format=" format
33Prints the random string using the chosen output
34.IR format ,
35which may be
36.B base64
841e5aca 37(standard Base64 encoding, as described in RFC2045; this is the default),
22fb157c 38.B file64
39(Base64 encoding, with
40.RB ` % '
41instead of
42.RB ` / ',
43so the output is suitable for use as a filename),
ed04d555 44.B safe64
45(Base64 encoding, with
46.RB ` - '
47instead of
48.RB ` + ',
49and
50.RB ` _ '
51instead of
52.RB ` / ',
53as specified in RFC3548, as an attempt to achieve the same goal but
54inconveniently using up all the good separator characters),
55.B base32
56(Base32 encoding, as described in RFC2938),
22fb157c 57.B hex
58(plain hexadecimal encoding), or
59.B raw
60(raw binary output, not printable).
61.TP
1dec4fa3 62.BI "\-l, \-\-line=" length
22fb157c 63Breaks textual output into lines of at most
64.I length
65characters, and does all encoding in a strictly conforming way. By
66default, the textual output is not line-broken, and strange terminator
67characters are not printed.
68.TP
69.B "\-y, \-\-bytes"
70The output length is bits, not bytes. This doesn't affect the default
71value of 128.
f342fce2 72.SH BUGS
73None known.
74.SH AUTHOR
71d8432e 75Mark Wooding <mdw@distorted.org.uk>