Annotation of coherent/a/usr/man/COHERENT/cut, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: cut                          Command                          cut
                      4: 
                      5: 
                      6: 
                      7: 
                      8: Select portions of each line of its input
                      9: 
                     10: ccuutt -cc_l_i_s_t [_f_i_l_e ...]
                     11: ccuutt -ff_l_i_s_t [-ss] [-dd _c_h_a_r] [_f_i_l_e ...]
                     12: 
                     13: ccuutt selects portions of each line of its input and writes them to
                     14: the standard output.  _l_i_s_t specifies the portions to select.  ccuutt
                     15: reads its input from _f_i_l_e, or the standard input by default.
                     16: 
                     17: _l_i_s_t  is  a  comma-separated set  of  numbers  or number  ranges.
                     18: Number ranges  consist of a number, a hyphen  (`-'), and a second
                     19: number, and select the fields or columns from the first number to
                     20: the second,  inclusive.  Preceding a number or  number range by a
                     21: hyphen  selects  all fields  or  columns from  one  to the  first
                     22: number.  Following  a number or number range  by a hyphen selects
                     23: all fields  or columns  from the  last number to  the end  of the
                     24: line.  Numbers  and number ranges  may be repeated,  overlap, and
                     25: appear in  any order.  It  is not an  error to select  a field or
                     26: column not present in the input line.
                     27: 
                     28: ccuutt recognizes the following command-line options:
                     29: 
                     30: -cc_l_i_s_t
                     31:     _l_i_s_t specifies character positions.
                     32: 
                     33: -ff_l_i_s_t
                     34:     _l_i_s_t specifies  fields, delimited in  the input by  one <ttaabb>
                     35:     character.   Output   fields  are  separated   by  one  <ttaabb>
                     36:     character.
                     37: 
                     38: -dd _c_h_a_r
                     39:     Use  _c_h_a_r  as  the  field  delimiter  instead  of  the  <ttaabb>
                     40:     character.
                     41: 
                     42: -ss  Suppress  lines with  no field-delimiter  characters.  Unless
                     43:     specified, ccuutt  passes through  unmodified all lines  with no
                     44:     delimiters.
                     45: 
                     46: ccuutt returns zero on success, one if an error occurred.
                     47: 
                     48: ***** Examples *****
                     49: 
                     50: The following example displays all serial port device names found
                     51: in file /eettcc/ttttyyss.
                     52: 
                     53: 
                     54:         cut -c4- /etc/ttys
                     55: 
                     56: 
                     57: The following example  displays the _l_o_g_i_n _n_a_m_e and _h_o_m_e _d_i_r_e_c_t_o_r_y
                     58: fields from  the /eettcc/ppaasssswwdd password file.   Note that fields in
                     59: the password file are delimited by the colon character.
                     60: 
                     61: 
                     62: 
                     63: 
                     64: COHERENT Lexicon                                           Page 1
                     65: 
                     66: 
                     67: 
                     68: 
                     69: cut                          Command                          cut
                     70: 
                     71: 
                     72: 
                     73: 
                     74:         cut -d: -f1,6 /etc/passwd
                     75: 
                     76: 
                     77: ***** See Also *****
                     78: 
                     79: aawwkk, ccoommmmaannddss, ppaassttee, sseedd
                     80: 
                     81: ***** Notes *****
                     82: 
                     83: ccuutt is  copyright (c) 1988,1990 by The  Regents of the University
                     84: of California.  All rights reserved.
                     85: 
                     86: ccuutt is distributed as a service to COHERENT customers, as is.  It
                     87: is not supported by Mark Williams Company.  _C_a_v_e_a_t _u_t_i_l_i_t_o_r.
                     88: 
                     89: 
                     90: 
                     91: 
                     92: 
                     93: 
                     94: 
                     95: 
                     96: 
                     97: 
                     98: 
                     99: 
                    100: 
                    101: 
                    102: 
                    103: 
                    104: 
                    105: 
                    106: 
                    107: 
                    108: 
                    109: 
                    110: 
                    111: 
                    112: 
                    113: 
                    114: 
                    115: 
                    116: 
                    117: 
                    118: 
                    119: 
                    120: 
                    121: 
                    122: 
                    123: 
                    124: 
                    125: 
                    126: 
                    127: 
                    128: 
                    129: 
                    130: COHERENT Lexicon                                           Page 2
                    131: 
                    132: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.