diff options
Diffstat (limited to 'coreutils/uniq.c')
-rw-r--r-- | coreutils/uniq.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/coreutils/uniq.c b/coreutils/uniq.c index decf7e4f8..6e764d8a4 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c | |||
@@ -10,6 +10,24 @@ | |||
10 | /* BB_AUDIT SUSv3 compliant */ | 10 | /* BB_AUDIT SUSv3 compliant */ |
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */ | 11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */ |
12 | 12 | ||
13 | //usage:#define uniq_trivial_usage | ||
14 | //usage: "[-cdu][-f,s,w N] [INPUT [OUTPUT]]" | ||
15 | //usage:#define uniq_full_usage "\n\n" | ||
16 | //usage: "Discard duplicate lines\n" | ||
17 | //usage: "\nOptions:" | ||
18 | //usage: "\n -c Prefix lines by the number of occurrences" | ||
19 | //usage: "\n -d Only print duplicate lines" | ||
20 | //usage: "\n -u Only print unique lines" | ||
21 | //usage: "\n -f N Skip first N fields" | ||
22 | //usage: "\n -s N Skip first N chars (after any skipped fields)" | ||
23 | //usage: "\n -w N Compare N characters in line" | ||
24 | //usage: | ||
25 | //usage:#define uniq_example_usage | ||
26 | //usage: "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" | ||
27 | //usage: "a\n" | ||
28 | //usage: "b\n" | ||
29 | //usage: "c\n" | ||
30 | |||
13 | #include "libbb.h" | 31 | #include "libbb.h" |
14 | 32 | ||
15 | int uniq_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 33 | int uniq_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |