Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/coreutils/cut.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/coreutils/cut.c
r2725 r3232 9 9 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 10 10 */ 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: "\n -b LIST Output only bytes from LIST" 17 //usage: "\n -c LIST Output only characters from LIST" 18 //usage: "\n -d CHAR Use CHAR instead of tab as the field delimiter" 19 //usage: "\n -s Output only the lines containing delimiter" 20 //usage: "\n -f N Print only these fields" 21 //usage: "\n -n Ignored" 22 //usage: 23 //usage:#define cut_example_usage 24 //usage: "$ echo \"Hello world\" | cut -f 1 -d ' '\n" 25 //usage: "Hello\n" 26 //usage: "$ echo \"Hello world\" | cut -f 2 -d ' '\n" 27 //usage: "world\n" 11 28 12 29 #include "libbb.h" … … 196 213 bb_error_msg_and_die 197 214 ("suppressing non-delimited lines makes sense%s", 198 215 _op_on_field); 199 216 } 200 217 if (delim != '\t') {
Note:
See TracChangeset
for help on using the changeset viewer.