summaryrefslogtreecommitdiff
path: root/util-linux/hexdump.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-01-25 16:50:30 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-25 16:50:30 +0100
commit62a9b18547462a657ffb18cf03d5cfdcf774c905 (patch)
tree5c6a660cd8066b1ed5944a4b9cb2717e89573be7 /util-linux/hexdump.c
parentcb8e84e65a254dcba4939e237b93d03c46ae56aa (diff)
downloadbusybox-w32-62a9b18547462a657ffb18cf03d5cfdcf774c905.tar.gz
busybox-w32-62a9b18547462a657ffb18cf03d5cfdcf774c905.tar.bz2
busybox-w32-62a9b18547462a657ffb18cf03d5cfdcf774c905.zip
xxd: implement -p
While at it, tweaked hexdump --help function old new delta xxd_main 364 414 +50 packed_usage 31097 31114 +17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/hexdump.c')
-rw-r--r--util-linux/hexdump.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index a4483a114..25f771201 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -41,20 +41,21 @@
41//usage: "[-bcCdefnosvx" IF_FEATURE_HEXDUMP_REVERSE("R") "] [FILE]..." 41//usage: "[-bcCdefnosvx" IF_FEATURE_HEXDUMP_REVERSE("R") "] [FILE]..."
42//usage:#define hexdump_full_usage "\n\n" 42//usage:#define hexdump_full_usage "\n\n"
43//usage: "Display FILEs (or stdin) in a user specified format\n" 43//usage: "Display FILEs (or stdin) in a user specified format\n"
44//usage: "\n -b One-byte octal display" 44//usage: "\n -b 1-byte octal display"
45//usage: "\n -c One-byte character display" 45//usage: "\n -c 1-byte character display"
46//usage: "\n -C Canonical hex+ASCII, 16 bytes per line" 46//usage: "\n -d 2-byte decimal display"
47//usage: "\n -d Two-byte decimal display" 47//usage: "\n -o 2-byte octal display"
48//usage: "\n -e FORMAT_STRING" 48//usage: "\n -x 2-byte hex display"
49//usage: "\n -C hex+ASCII 16 bytes per line"
50//usage: "\n -v Show all (no dup folding)"
51//usage: "\n -e FORMAT_STR Example: '16/1 \"%02x|\"\"\\n\"'"
49//usage: "\n -f FORMAT_FILE" 52//usage: "\n -f FORMAT_FILE"
50// exactly the same help text lines in hexdump and xxd: 53// exactly the same help text lines in hexdump and xxd:
51//usage: "\n -n LENGTH Interpret only LENGTH bytes of input" 54//usage: "\n -n LENGTH Show only first LENGTH bytes"
52//usage: "\n -o Two-byte octal display"
53//usage: "\n -s OFFSET Skip OFFSET bytes" 55//usage: "\n -s OFFSET Skip OFFSET bytes"
54//usage: "\n -v Display all input data"
55//usage: "\n -x Two-byte hexadecimal display"
56//usage: IF_FEATURE_HEXDUMP_REVERSE( 56//usage: IF_FEATURE_HEXDUMP_REVERSE(
57//usage: "\n -R Reverse of 'hexdump -Cv'") 57//usage: "\n -R Reverse of 'hexdump -Cv'")
58// TODO: NONCOMPAT!!! move -R to xxd -r
58//usage: 59//usage:
59//usage:#define hd_trivial_usage 60//usage:#define hd_trivial_usage
60//usage: "FILE..." 61//usage: "FILE..."