aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cut.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
commit67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch)
treea4a1db7f54c16d12fabe2626b8f1e235cd694e9e /coreutils/cut.c
parent811c449748d5bd0505f8510e5582892f94ac0cda (diff)
parentb83c9704128dd106071184e4b00335a3b8486857 (diff)
downloadbusybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'coreutils/cut.c')
-rw-r--r--coreutils/cut.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c
index 38cd32c77..dfa1833b4 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -9,6 +9,24 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 9 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
10 */ 10 */
11 11
12//usage:#define cut_trivial_usage
13//usage: "[OPTIONS] [FILE]..."
14//usage:#define cut_full_usage "\n\n"
15//usage: "Print selected fields from each input FILE to stdout\n"
16//usage: "\nOptions:"
17//usage: "\n -b LIST Output only bytes from LIST"
18//usage: "\n -c LIST Output only characters from LIST"
19//usage: "\n -d CHAR Use CHAR instead of tab as the field delimiter"
20//usage: "\n -s Output only the lines containing delimiter"
21//usage: "\n -f N Print only these fields"
22//usage: "\n -n Ignored"
23//usage:
24//usage:#define cut_example_usage
25//usage: "$ echo \"Hello world\" | cut -f 1 -d ' '\n"
26//usage: "Hello\n"
27//usage: "$ echo \"Hello world\" | cut -f 2 -d ' '\n"
28//usage: "world\n"
29
12#include "libbb.h" 30#include "libbb.h"
13 31
14/* This is a NOEXEC applet. Be very careful! */ 32/* This is a NOEXEC applet. Be very careful! */