diff options
Diffstat (limited to 'uxd.rst')
-rw-r--r-- | uxd.rst | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -50,6 +50,12 @@ Options can be bundled: **-ubc1234** is the same as **-u** **-b** **-c 1234**. The one exception is the **-n** option, which should appear by itself. +The options that accept numbers (**-l**, **-o**, **-s**, and **-S**) +allow decimal, hex (with *0x* prefix), or octal (with *0* prefix). +Also, you can use the suffixes *k*, *m*, and *g* for power-of-2 based +kilobytes, megabytes, or gigabytes (e.g. *1k* is 1024 bytes), as well +as *K*, *M*, and *G* for power-of-10 based (e.g. *1K* is 1000 bytes). + .. the comments are turned into the --help message by mkusage.pl. -1 @@ -95,8 +101,7 @@ by itself. -l length Stop dumping after *length* bytes (not characters). If the limit is reached in the middle of a multibyte character, the entire character - will be dumped. Can be given in decimal, hex (with *0x* prefix), or - octal (with *0* prefix). Negative *length* doesn't make sense, and + will be dumped. Negative *length* doesn't make sense, and is an error. .. stop dumping after <length> bytes (not characters). @@ -117,8 +122,7 @@ by itself. -o offset Add this amount to the hex offsets (left column). May be negative, - if you can think of a reason to want it to be. Can be given in - decimal, hex (with *0x* prefix), or octal (with *0* prefix). + if you can think of a reason to want it to be. .. added to hex offsets (decimal, 0x hex, 0 octal). @@ -132,13 +136,12 @@ by itself. Seek in input before starting to dump. *pos* is bytes, not characters. Positive *pos* means seek from the start of the input. Negative *pos* only works on files (not standard input); - it means seek backward from EOF. Can be given in decimal, hex (with - *0x* prefix), or octal (with *0* prefix). + it means seek backward from EOF. .. seek in input before dumping (-pos = seek back from EOF). -S pos - Same as **-s**, but file offsets start at 0 rather than the + Same as **-s**, but the displayed offsets start at 0 rather than the position after seeking. **-S 100** is the same as **-s 100 -o -100**. Works with negative *pos*, too. |