aboutsummaryrefslogtreecommitdiff
path: root/coreutils/head.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/head.c')
-rw-r--r--coreutils/head.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/coreutils/head.c b/coreutils/head.c
index 669aae819..f49320ef4 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -11,6 +11,26 @@
11/* BB_AUDIT GNU compatible -c, -q, and -v options in 'fancy' configuration. */ 11/* BB_AUDIT GNU compatible -c, -q, and -v options in 'fancy' configuration. */
12/* http://www.opengroup.org/onlinepubs/007904975/utilities/head.html */ 12/* http://www.opengroup.org/onlinepubs/007904975/utilities/head.html */
13 13
14//usage:#define head_trivial_usage
15//usage: "[OPTIONS] [FILE]..."
16//usage:#define head_full_usage "\n\n"
17//usage: "Print first 10 lines of each FILE (or stdin) to stdout.\n"
18//usage: "With more than one FILE, precede each with a filename header.\n"
19//usage: "\nOptions:"
20//usage: "\n -n N[kbm] Print first N lines"
21//usage: IF_FEATURE_FANCY_HEAD(
22//usage: "\n -c N[kbm] Print first N bytes"
23//usage: "\n -q Never print headers"
24//usage: "\n -v Always print headers"
25//usage: )
26//usage: "\n"
27//usage: "\nN may be suffixed by k (x1024), b (x512), or m (x1024^2)."
28//usage:
29//usage:#define head_example_usage
30//usage: "$ head -n 2 /etc/passwd\n"
31//usage: "root:x:0:0:root:/root:/bin/bash\n"
32//usage: "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
33
14#include "libbb.h" 34#include "libbb.h"
15 35
16/* This is a NOEXEC applet. Be very careful! */ 36/* This is a NOEXEC applet. Be very careful! */