| Rev | Author | # | Line |
|---|---|---|---|
| 1 | perry | 1 | !!NAME |
| 3 | CraigBox | 2 | cut - remove sections from each line of files |
| 1 | perry | 3 | |
| 4 | !!SYNOPSIS | ||
| 3 | CraigBox | 5 | __cut__ ~[''OPTION'']... ~[''FILE'']... |
| 1 | perry | 6 | |
| 7 | !!DESCRIPTION | ||
| 8 | |||
| 9 | |||
| 3 | CraigBox | 10 | Print selected parts of lines from each FILE to standard output. |
| 1 | perry | 11 | |
| 3 | CraigBox | 12 | Mandatory arguments to long options are mandatory for short options too. |
| 13 | ;__-b__, __-- bytes__=''LIST'' : output only these bytes | ||
| 14 | ;__-c__, __-- characters__=''LIST'' : output only these characters | ||
| 15 | ;__-d__, __-- delimiter__=''DELIM'' : use DELIM instead of TAB for field delimiter | ||
| 16 | ;__-f__, __-- fields__=''LIST'' : output only these fields; also print any line that contains no delimiter character, unless the __-s__ option is specified | ||
| 17 | ;__-n__ : (ignored) | ||
| 18 | ;__-s__, __-- only-delimited__ : do not print lines not containing delimiters | ||
| 19 | ;__-- output-delimiter__=''STRING'' : use STRING as the output delimiter the default is to use the input delimiter | ||
| 20 | ;__-- help__ : display this help and exit | ||
| 21 | ;__-- version__ : output version information and exit | ||
| 1 | perry | 22 | |
| 3 | CraigBox | 23 | Use one, and only one of __-b__, __-c__ or __-f__. Each LIST is made up of one range, or many ranges separated by commas. Each range is one of: |
| 24 | ;N : N'th byte, character or field, counted from 1 | ||
| 25 | ;N- : from N'th byte, character or field, to end of line | ||
| 26 | ;N-M : from N'th to M'th (included) byte, character or field | ||
| 27 | ;__-M__ : from first to M'th (included) byte, character or field | ||
| 1 | perry | 28 | |
| 3 | CraigBox | 29 | The order of bytes, characters or fields in the output will be identical to those in the input. With no FILE, or when FILE is -, read standard input. |
| 1 | perry | 30 | |
| 31 | !!AUTHOR | ||
| 3 | CraigBox | 32 | Written by David Ihnat, David ~MacKenzie, and Jim Meyering. |
| 1 | perry | 33 | |
| 34 | !!REPORTING BUGS | ||
| 3 | CraigBox | 35 | Report bugs to <bug-coreutils@gnu.org>. |
| 1 | perry | 36 | |
| 37 | !!COPYRIGHT | ||
| 3 | CraigBox | 38 | Copyright © 2004 Free Software Foundation, Inc. |
| 39 | This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 1 | perry | 40 | |
| 41 | !!SEE ALSO | ||
| 3 | CraigBox | 42 | The full documentation for __cut__ is maintained as a Texinfo manual. If the __info__ and __cut__ programs are properly installed at your site, the command |
| 43 | ;: __info coreutils cut__ | ||
| 1 | perry | 44 | |
| 3 | CraigBox | 45 | should give you access to the complete manual. |
| 1 | perry | 46 | |
| 3 | CraigBox | 47 | !!EXAMPLES |
| 1 | perry | 48 | |
| 3 | CraigBox | 49 | Given output like |
| 1 | perry | 50 | |
| 3 | CraigBox | 51 | <verbatim> |
| 52 | ./b/bind9/libisccc0_9.2.4-1ubuntu1_i386.deb | ||
| 53 | ./b/bind9/bind9_9.2.4-1ubuntu1_i386.deb | ||
| 54 | ./b/bind9/libisccfg0_9.2.4-1ubuntu1_i386.deb | ||
| 55 | </verbatim> | ||
| 1 | perry | 56 | |
| 3 | CraigBox | 57 | To get the filenames, use =cut -d "/" -f 4= - this uses / as the delimiter between fields, and gives you the fourth field. |
lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 7 times)