From 34425389e09353a8dacdd6b23a62553f699c544c Mon Sep 17 00:00:00 2001 From: Pere Orga Date: Thu, 31 Mar 2011 14:43:25 +0200 Subject: move help text from include/usage.src.h to coreutils/*.c Signed-off-by: Pere Orga Signed-off-by: Denys Vlasenko --- coreutils/tail.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'coreutils/tail.c') diff --git a/coreutils/tail.c b/coreutils/tail.c index df881a3..eac9827 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -24,6 +24,31 @@ * 7) lseek attempted when count==0 even if arg was +0 (from top) */ +//usage:#define tail_trivial_usage +//usage: "[OPTIONS] [FILE]..." +//usage:#define tail_full_usage "\n\n" +//usage: "Print last 10 lines of each FILE (or stdin) to stdout.\n" +//usage: "With more than one FILE, precede each with a filename header.\n" +//usage: "\nOptions:" +//usage: "\n -f Print data as file grows" +//usage: IF_FEATURE_FANCY_TAIL( +//usage: "\n -s SECONDS Wait SECONDS between reads with -f" +//usage: ) +//usage: "\n -n N[kbm] Print last N lines" +//usage: IF_FEATURE_FANCY_TAIL( +//usage: "\n -c N[kbm] Print last N bytes" +//usage: "\n -q Never print headers" +//usage: "\n -v Always print headers" +//usage: "\n" +//usage: "\nN may be suffixed by k (x1024), b (x512), or m (x1024^2)." +//usage: "\nIf N starts with a '+', output begins with the Nth item from the start" +//usage: "\nof each file, not from the end." +//usage: ) +//usage: +//usage:#define tail_example_usage +//usage: "$ tail -n 1 /etc/resolv.conf\n" +//usage: "nameserver 10.0.0.1\n" + #include "libbb.h" static const struct suffix_mult tail_suffixes[] = { -- cgit v1.1