Add an examples section. Avoid beginning a sentence with a lowercase letter.
This commit is contained in:
parent
78fdefb2be
commit
500b4b738d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98044
@ -74,7 +74,9 @@ can be in terms of column position or in terms of fields delimited
|
|||||||
by a special character.
|
by a special character.
|
||||||
Column numbering starts from 1.
|
Column numbering starts from 1.
|
||||||
.Pp
|
.Pp
|
||||||
|
The
|
||||||
.Ar list
|
.Ar list
|
||||||
|
option argument
|
||||||
is a comma or whitespace separated set of increasing numbers and/or
|
is a comma or whitespace separated set of increasing numbers and/or
|
||||||
number ranges.
|
number ranges.
|
||||||
Number ranges consist of a number, a dash
|
Number ranges consist of a number, a dash
|
||||||
@ -128,6 +130,18 @@ if the
|
|||||||
option is specified.
|
option is specified.
|
||||||
Their effect is described in
|
Their effect is described in
|
||||||
.Xr environ 7 .
|
.Xr environ 7 .
|
||||||
|
.Sh EXAMPLES
|
||||||
|
Extract users' login names and shells from the system
|
||||||
|
.Xr passwd 5
|
||||||
|
file as
|
||||||
|
.Dq name:shell
|
||||||
|
pairs:
|
||||||
|
.Pp
|
||||||
|
.Dl "cut -d : -f 1,7 /etc/passwd"
|
||||||
|
.Pp
|
||||||
|
Show the names and login times of the currently logged in users:
|
||||||
|
.Pp
|
||||||
|
.Dl "who | cut -c 1-16,26-38"
|
||||||
.Sh DIAGNOSTICS
|
.Sh DIAGNOSTICS
|
||||||
.Ex -std
|
.Ex -std
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
|
Loading…
Reference in New Issue
Block a user