diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-01-04 15:50:59 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-01-04 15:50:59 +0000 |
commit | 31353baf13951091e2d82513ebdd7c0a95869891 (patch) | |
tree | fcb58f81f778fcf3b49532f5aee67d703c06979a /usr.bin | |
parent | 70fb1a7c30e59538f42539695dc536e30b1a5651 (diff) |
add an EXAMPLES section adapted from freebsd's page,
courtesy of ray lai;
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cut/cut.1 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/cut/cut.1 b/usr.bin/cut/cut.1 index 6012f1607c4..443d4a7b38c 100644 --- a/usr.bin/cut/cut.1 +++ b/usr.bin/cut/cut.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: cut.1,v 1.8 2003/06/03 02:56:07 millert Exp $ +.\" $OpenBSD: cut.1,v 1.9 2006/01/04 15:50:58 jmc Exp $ .\" $NetBSD: cut.1,v 1.6 1995/10/02 20:19:26 jtc Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 @@ -112,6 +112,18 @@ Unless specified, lines with no delimiters are passed through unmodified. The .Nm utility exits 0 on success or 1 if an error occurred. +.Sh EXAMPLES +Extract 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 logged in users: +.Pp +.Dl "$ who | cut -c 1-16,26-38" .Sh SEE ALSO .Xr paste 1 .Sh STANDARDS |