summaryrefslogtreecommitdiff
path: root/coreutils/tail.c
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-03-31 14:43:25 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-31 14:43:25 +0200
commit34425389e09353a8dacdd6b23a62553f699c544c (patch)
tree4eb2e19685536384748e75af827deca885c9cc0a /coreutils/tail.c
parente3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff)
downloadbusybox-34425389e09353a8dacdd6b23a62553f699c544c.tar.gz
move help text from include/usage.src.h to coreutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r--coreutils/tail.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c
index df881a37a..eac982735 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[] = {