diff options
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r-- | coreutils/tail.c | 25 |
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 @@ | |||
24 | * 7) lseek attempted when count==0 even if arg was +0 (from top) | 24 | * 7) lseek attempted when count==0 even if arg was +0 (from top) |
25 | */ | 25 | */ |
26 | 26 | ||
27 | //usage:#define tail_trivial_usage | ||
28 | //usage: "[OPTIONS] [FILE]..." | ||
29 | //usage:#define tail_full_usage "\n\n" | ||
30 | //usage: "Print last 10 lines of each FILE (or stdin) to stdout.\n" | ||
31 | //usage: "With more than one FILE, precede each with a filename header.\n" | ||
32 | //usage: "\nOptions:" | ||
33 | //usage: "\n -f Print data as file grows" | ||
34 | //usage: IF_FEATURE_FANCY_TAIL( | ||
35 | //usage: "\n -s SECONDS Wait SECONDS between reads with -f" | ||
36 | //usage: ) | ||
37 | //usage: "\n -n N[kbm] Print last N lines" | ||
38 | //usage: IF_FEATURE_FANCY_TAIL( | ||
39 | //usage: "\n -c N[kbm] Print last N bytes" | ||
40 | //usage: "\n -q Never print headers" | ||
41 | //usage: "\n -v Always print headers" | ||
42 | //usage: "\n" | ||
43 | //usage: "\nN may be suffixed by k (x1024), b (x512), or m (x1024^2)." | ||
44 | //usage: "\nIf N starts with a '+', output begins with the Nth item from the start" | ||
45 | //usage: "\nof each file, not from the end." | ||
46 | //usage: ) | ||
47 | //usage: | ||
48 | //usage:#define tail_example_usage | ||
49 | //usage: "$ tail -n 1 /etc/resolv.conf\n" | ||
50 | //usage: "nameserver 10.0.0.1\n" | ||
51 | |||
27 | #include "libbb.h" | 52 | #include "libbb.h" |
28 | 53 | ||
29 | static const struct suffix_mult tail_suffixes[] = { | 54 | static const struct suffix_mult tail_suffixes[] = { |