diff options
Diffstat (limited to 'coreutils/tr.c')
-rw-r--r-- | coreutils/tr.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/coreutils/tr.c b/coreutils/tr.c index 5b2b9a9a4..2f14a414f 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -47,6 +47,19 @@ | |||
47 | //config: useful for cases when no other way of expressing a character | 47 | //config: useful for cases when no other way of expressing a character |
48 | //config: is possible. | 48 | //config: is possible. |
49 | 49 | ||
50 | //usage:#define tr_trivial_usage | ||
51 | //usage: "[-cds] STRING1 [STRING2]" | ||
52 | //usage:#define tr_full_usage "\n\n" | ||
53 | //usage: "Translate, squeeze, or delete characters from stdin, writing to stdout\n" | ||
54 | //usage: "\nOptions:" | ||
55 | //usage: "\n -c Take complement of STRING1" | ||
56 | //usage: "\n -d Delete input characters coded STRING1" | ||
57 | //usage: "\n -s Squeeze multiple output characters of STRING2 into one character" | ||
58 | //usage: | ||
59 | //usage:#define tr_example_usage | ||
60 | //usage: "$ echo \"gdkkn vnqkc\" | tr [a-y] [b-z]\n" | ||
61 | //usage: "hello world\n" | ||
62 | |||
50 | #include "libbb.h" | 63 | #include "libbb.h" |
51 | 64 | ||
52 | enum { | 65 | enum { |