source: buchla-68k/orig/doc/Utilities/FIELD.TXT@ c65a0e2

Last change on this file since c65a0e2 was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 8 years ago

Imported original source code.

  • Property mode set to 100755
File size: 1.1 KB
RevLine 
[3ae31e9]1NAME
2 field - select fields or columns from a file
3
4SYNOPSIS
5
6 field [-tc] [-nc] [-pc] n ...
7
8DESCRIPTION
9
10 The field command copies selected, delimiter-separated fields from
11 the standard input to the standard output.
12
13 Fields are numbered from 1 and a field may be requested more than once.
14
15 The default delimiter is a tab.
16
17 This can be changed to character c with the option -tc .
18 If the form -nc is used, the delimiter c is used on input,
19 but the output is still separated by tabs. If the form -pc
20 is use, the delimiter c is used on output, but the input is
21 still delimited by tabs.
22
23EXAMPLE
24
25 The following command extracts the login names, user and group numbers
26 from the password file:
27
28
29 field -t: 1 3 4 </etc/passwd
30
31SEE ALSO
32
33 Cut, which is available on System V.
34 There is a version of cut on this system, but no manual entry yet.
35
36BUGS/LIMITATIONS
37
38 The number of input or output fields may not exceed 256 and
39 the maximum line length is 4096 characters.
40
41AUTHORS
42
43 Adapted from:
44
45 Bourne, S. R.
46 "The Unix Programming Environment"
47 p 228-9.
48
49 Modifications by William Silvert and D.N. Lynx Crowe.
Note: See TracBrowser for help on using the repository browser.