diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-03 07:21:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-03 07:21:27 +0000 |
commit | 96b99b860cc15f13b85b1b2d5b5b20ab7183a652 (patch) | |
tree | f7f5236085dcc40f02bd29078900d971a787344e /include | |
parent | 687a26fe0dcf10f227cb0541882d1daa8a21991d (diff) | |
download | busybox-w32-96b99b860cc15f13b85b1b2d5b5b20ab7183a652.tar.gz busybox-w32-96b99b860cc15f13b85b1b2d5b5b20ab7183a652.tar.bz2 busybox-w32-96b99b860cc15f13b85b1b2d5b5b20ab7183a652.zip |
uniq: support -w. closes bug 3094.
function old new delta
packed_usage 24136 24132 -4
uniq_main 399 384 -15
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/usage.h b/include/usage.h index cbc5cb0a2..e791ba6bf 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -4303,16 +4303,16 @@ | |||
4303 | ) | 4303 | ) |
4304 | 4304 | ||
4305 | #define uniq_trivial_usage \ | 4305 | #define uniq_trivial_usage \ |
4306 | "[-fscdu]... [INPUT [OUTPUT]]" | 4306 | "[-fscduw]... [INPUT [OUTPUT]]" |
4307 | #define uniq_full_usage "\n\n" \ | 4307 | #define uniq_full_usage "\n\n" \ |
4308 | "Discard all but one of successive identical lines from INPUT\n" \ | 4308 | "Discard duplicate lines\n" \ |
4309 | "(or standard input), writing to OUTPUT (or standard output)\n" \ | ||
4310 | "\nOptions:" \ | 4309 | "\nOptions:" \ |
4311 | "\n -c Prefix lines by the number of occurrences" \ | 4310 | "\n -c Prefix lines by the number of occurrences" \ |
4312 | "\n -d Only print duplicate lines" \ | 4311 | "\n -d Only print duplicate lines" \ |
4313 | "\n -u Only print unique lines" \ | 4312 | "\n -u Only print unique lines" \ |
4314 | "\n -f N Skip the first N fields" \ | 4313 | "\n -f N Skip first N fields" \ |
4315 | "\n -s N Skip the first N chars (after any skipped fields)" \ | 4314 | "\n -s N Skip first N chars (after any skipped fields)" \ |
4315 | "\n -w N Compare N characters in line" \ | ||
4316 | 4316 | ||
4317 | #define uniq_example_usage \ | 4317 | #define uniq_example_usage \ |
4318 | "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \ | 4318 | "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \ |