summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2021-06-02 04:01:10 +0200
committerDenys Vlasenko2021-06-02 04:01:10 +0200
commitb9258b86a7985a45921696ede192c51cb9eb52be (patch)
treea989bf76655f569ad4c19ba11dd6e53a09c81613
parent687f41f10bd5f493e82395e127f7d4d52b11d308 (diff)
downloadbusybox-b9258b86a7985a45921696ede192c51cb9eb52be.zip
busybox-b9258b86a7985a45921696ede192c51cb9eb52be.tar.gz
head,tail: trim --help text
function old new delta packed_usage 33598 33560 -38 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/head.c13
-rw-r--r--coreutils/tail.c17
2 files changed, 16 insertions, 14 deletions
diff --git a/coreutils/head.c b/coreutils/head.c
index efb023c..9586f86 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -29,17 +29,18 @@
//usage:#define head_trivial_usage
//usage: "[OPTIONS] [FILE]..."
//usage:#define head_full_usage "\n\n"
-//usage: "Print first 10 lines of FILEs (or stdin) to stdout.\n"
+//usage: "Print first 10 lines of FILEs (or stdin).\n"
//usage: "With more than one FILE, precede each with a filename header.\n"
-//usage: "\n -n N[kbm] Print first N lines"
+//usage: "\n -n N[bkm] Print first N lines"
+//usage: IF_FEATURE_FANCY_HEAD(
+//usage: "\n -n -N[bkm] Print all except N last lines"
+//usage: "\n -c [-]N[bkm] Print first N bytes"
+//usage: )
+//usage: "\n (b:*512 k:*1024 m:*1024^2)"
//usage: IF_FEATURE_FANCY_HEAD(
-//usage: "\n -n -N[kbm] Print all except N last lines"
-//usage: "\n -c [-]N[kbm] Print first N bytes"
//usage: "\n -q Never print headers"
//usage: "\n -v Always print headers"
//usage: )
-//usage: "\n"
-//usage: "\nN may be suffixed by k (x1024), b (x512), or m (x1024^2)."
//usage:
//usage:#define head_example_usage
//usage: "$ head -n 2 /etc/passwd\n"
diff --git a/coreutils/tail.c b/coreutils/tail.c
index 08fde6c..4602f4d 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -48,19 +48,20 @@
//usage:#define tail_trivial_usage
//usage: "[OPTIONS] [FILE]..."
//usage:#define tail_full_usage "\n\n"
-//usage: "Print last 10 lines of FILEs (or stdin) to stdout.\n"
+//usage: "Print last 10 lines of FILEs (or stdin) to.\n"
//usage: "With more than one FILE, precede each with a filename header.\n"
-//usage: "\n -f Print data as file grows"
-//usage: "\n -c [+]N[kbm] Print last N bytes"
-//usage: "\n -n N[kbm] Print last N lines"
-//usage: "\n -n +N[kbm] Start on Nth line and print the rest"
+//usage: "\n -c [+]N[bkm] Print last N bytes"
+//usage: "\n -n N[bkm] Print last N lines"
+//usage: "\n -n +N[bkm] Start on Nth line and print the rest"
+//usage: "\n (b:*512 k:*1024 m:*1024^2)"
//usage: IF_FEATURE_FANCY_TAIL(
//usage: "\n -q Never print headers"
-//usage: "\n -s SECONDS Wait SECONDS between reads with -f"
//usage: "\n -v Always print headers"
+//usage: )
+//usage: "\n -f Print data as file grows"
+//usage: IF_FEATURE_FANCY_TAIL(
//usage: "\n -F Same as -f, but keep retrying"
-//usage: "\n"
-//usage: "\nN may be suffixed by k (x1024), b (x512), or m (x1024^2)."
+//usage: "\n -s SECONDS Wait SECONDS between reads with -f"
//usage: )
//usage:
//usage:#define tail_example_usage