From 59f0a60015028b8e87930522280a1997441c3471 Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 8 Jun 2002 08:37:27 +0000 Subject: [PATCH] Add an examples section. Avoid beginning a sentence with a lowercase letter. --- usr.bin/cut/cut.1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/usr.bin/cut/cut.1 b/usr.bin/cut/cut.1 index f81e6828d6e6..856ad3b661c7 100644 --- a/usr.bin/cut/cut.1 +++ b/usr.bin/cut/cut.1 @@ -74,7 +74,9 @@ can be in terms of column position or in terms of fields delimited by a special character. Column numbering starts from 1. .Pp +The .Ar list +option argument is a comma or whitespace separated set of increasing numbers and/or number ranges. Number ranges consist of a number, a dash @@ -128,6 +130,18 @@ if the option is specified. Their effect is described in .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 .Ex -std .Sh SEE ALSO