-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
bamccaig edited this page Apr 18, 2011
·
2 revisions
Taken from --help option on 2010-02-10 (from 02b56de57f015db289558bf001b6a4f07c06ae0a). See source code or execute with the —help option for up-to-date usage.
Takes character data as input and rotates characters a
number of places. Can be used for rot13, rot47, and rot<N>.
rot { -h | --help }
rot [ -a | --argv | -F<file> | --file=<file> ]
[ -d | --decypher ] [ -C | --13 | --47 | -N<numPlaces>
| --num-places=<numPlaces> ]
[ -R<range> | --range=<range> ... ]
-a
--argv Take input from anonymous arguments
instead of stdin.
-C
--13 Rot13 mode. Same as -N13.
--47 Rot47 mode. Same as -N47 -R217E.
-d
--decypher Rotate places backwards instead of
forwards.
-F<file>
--file=<file> Specify a file as input instead of
stdin. stdin can also be specified
with a dash (-). For a file named -,
qualify it with a path
(i.e., "./-").
-h
--help Print this message and exit.
-N<numPlaces>
--num-places=<numPlaces> Specify the number of places to rotate
alphabetic characters.
-R<range>
--range=<range> Specify the range of character codes that
is rotated. Expected is a 4 digit hex
number. The first two digits specify the
beginning of the range and the last two
digits specify the end. The default
behavior, ASCII alphabet characters only,
has two ranges: 415A and 617A.