diff options
Diffstat (limited to 'tail.c')
-rw-r--r-- | tail.c | 34 |
1 files changed, 0 insertions, 34 deletions
@@ -72,21 +72,6 @@ static int forever; | |||
72 | /* If nonzero, print filename headers. */ | 72 | /* If nonzero, print filename headers. */ |
73 | static int print_headers; | 73 | static int print_headers; |
74 | 74 | ||
75 | const char tail_usage[] = | ||
76 | "tail [OPTION] [FILE]...\n" | ||
77 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
78 | "\nPrint last 10 lines of each FILE to standard output.\n" | ||
79 | "With more than one FILE, precede each with a header giving the\n" | ||
80 | "file name. With no FILE, or when FILE is -, read standard input.\n\n" | ||
81 | "Options:\n" | ||
82 | "\t-n NUM\t\tPrint last NUM lines instead of first 10\n" | ||
83 | |||
84 | "\t-f\t\tOutput data as the file grows. This version\n" | ||
85 | "\t\t\tof 'tail -f' supports only one file at a time.\n" | ||
86 | #endif | ||
87 | ; | ||
88 | |||
89 | |||
90 | static void write_header(const char *filename) | 75 | static void write_header(const char *filename) |
91 | { | 76 | { |
92 | static int first_file = 1; | 77 | static int first_file = 1; |
@@ -516,25 +501,6 @@ char *program_name; | |||
516 | /* Nonzero if we have ever read standard input. */ | 501 | /* Nonzero if we have ever read standard input. */ |
517 | static int have_read_stdin; | 502 | static int have_read_stdin; |
518 | 503 | ||
519 | |||
520 | static const char tail_usage[] = "tail [OPTION]... [FILE]...\n" | ||
521 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
522 | "\nPrint last 10 lines of each FILE to standard output.\n\ | ||
523 | With more than one FILE, precede each with a header giving the file name.\n\ | ||
524 | With no FILE, or when FILE is -, read standard input.\n\ | ||
525 | \n\ | ||
526 | -c=N[kbm] output the last N bytes\n\ | ||
527 | -f output appended data as the file grows\n\ | ||
528 | -n=N output the last N lines, instead of last 10\n\ | ||
529 | -q never output headers giving file names\n\ | ||
530 | -v always output headers giving file names\n\ | ||
531 | \n\ | ||
532 | If the first character of N (bytes or lines) is a `+', output begins with \n\ | ||
533 | the Nth item from the start of each file, otherwise, print the last N items\n\ | ||
534 | in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2).\n" | ||
535 | #endif | ||
536 | ; | ||
537 | |||
538 | static void write_header(const char *filename, const char *comment) | 504 | static void write_header(const char *filename, const char *comment) |
539 | { | 505 | { |
540 | static int first_file = 1; | 506 | static int first_file = 1; |