diff options
author | Paul Fox <pgf@brightstareng.com> | 2005-11-28 21:06:00 +0000 |
---|---|---|
committer | Paul Fox <pgf@brightstareng.com> | 2005-11-28 21:06:00 +0000 |
commit | 969af897970b493f2615a233f7c83ca86a6d488f (patch) | |
tree | e0d404c3b121062ca58a92aba8111c4863082f14 /include/usage.h | |
parent | d957b9537ee2b93af93c92dbb8a2a6cfc3682318 (diff) | |
download | busybox-w32-969af897970b493f2615a233f7c83ca86a6d488f.tar.gz busybox-w32-969af897970b493f2615a233f7c83ca86a6d488f.tar.bz2 busybox-w32-969af897970b493f2615a233f7c83ca86a6d488f.zip |
add "-C" format to hexdump
fixes bug #113 and satisfies a personal need at the same time.
output compares identically to util-linux version. (with
exception of whitespace differences on last lines of output with
non-uniform length, which are neither fixed nor worsened by this
change.)
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h index ab0bb4ce4..912a88f4e 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1087,13 +1087,14 @@ | |||
1087 | "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n" | 1087 | "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n" |
1088 | 1088 | ||
1089 | #define hexdump_trivial_usage \ | 1089 | #define hexdump_trivial_usage \ |
1090 | "[-[bcdefnosvx]] [OPTION] FILE" | 1090 | "[-[bcCdefnosvx]] [OPTION] FILE" |
1091 | #define hexdump_full_usage \ | 1091 | #define hexdump_full_usage \ |
1092 | "The hexdump utility is a filter which displays the specified files,\n" \ | 1092 | "The hexdump utility is a filter which displays the specified files,\n" \ |
1093 | "or the standard input, if no files are specified, in a user specified\n" \ | 1093 | "or the standard input, if no files are specified, in a user specified\n" \ |
1094 | "format\n" \ | 1094 | "format\n" \ |
1095 | "\t-b\t\tOne-byte octal display\n" \ | 1095 | "\t-b\t\tOne-byte octal display\n" \ |
1096 | "\t-c\t\tOne-byte character display\n" \ | 1096 | "\t-c\t\tOne-byte character display\n" \ |
1097 | "\t-C\t\tCanonical hex+ASCII, 16 bytes per line\n" \ | ||
1097 | "\t-d\t\tTwo-byte decimal display\n" \ | 1098 | "\t-d\t\tTwo-byte decimal display\n" \ |
1098 | "\t-e FORMAT STRING\n" \ | 1099 | "\t-e FORMAT STRING\n" \ |
1099 | "\t-f FORMAT FILE\n" \ | 1100 | "\t-f FORMAT FILE\n" \ |