aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Fox <pgf@brightstareng.com>2005-11-28 21:06:00 +0000
committerPaul Fox <pgf@brightstareng.com>2005-11-28 21:06:00 +0000
commit969af897970b493f2615a233f7c83ca86a6d488f (patch)
treee0d404c3b121062ca58a92aba8111c4863082f14 /include
parentd957b9537ee2b93af93c92dbb8a2a6cfc3682318 (diff)
downloadbusybox-969af897970b493f2615a233f7c83ca86a6d488f.tar.gz
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')
-rw-r--r--include/usage.h3
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 @@
"daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
#define hexdump_trivial_usage \
- "[-[bcdefnosvx]] [OPTION] FILE"
+ "[-[bcCdefnosvx]] [OPTION] FILE"
#define hexdump_full_usage \
"The hexdump utility is a filter which displays the specified files,\n" \
"or the standard input, if no files are specified, in a user specified\n" \
"format\n" \
"\t-b\t\tOne-byte octal display\n" \
"\t-c\t\tOne-byte character display\n" \
+ "\t-C\t\tCanonical hex+ASCII, 16 bytes per line\n" \
"\t-d\t\tTwo-byte decimal display\n" \
"\t-e FORMAT STRING\n" \
"\t-f FORMAT FILE\n" \