summaryrefslogtreecommitdiffstats
path: root/usr.bin/head/head.1
diff options
context:
space:
mode:
authorjoel <joel@FreeBSD.org>2013-03-16 22:53:38 +0000
committerjoel <joel@FreeBSD.org>2013-03-16 22:53:38 +0000
commit2c33737ccb39296e83e0325b02a83ee7e1c5c95f (patch)
tree1d7056ea05a6eeb491f12458285437b83325fab2 /usr.bin/head/head.1
parent4bbf2e81a6a3b076d53a9eb2d67eec6b39027517 (diff)
downloadFreeBSD-src-2c33737ccb39296e83e0325b02a83ee7e1c5c95f.zip
FreeBSD-src-2c33737ccb39296e83e0325b02a83ee7e1c5c95f.tar.gz
Add a couple of examples.
Obtained from: OpenBSD
Diffstat (limited to 'usr.bin/head/head.1')
-rw-r--r--usr.bin/head/head.115
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.bin/head/head.1 b/usr.bin/head/head.1
index 0e16477..9bc3413 100644
--- a/usr.bin/head/head.1
+++ b/usr.bin/head/head.1
@@ -28,7 +28,7 @@
.\" @(#)head.1 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd June 6, 1993
+.Dd March 16, 2013
.Dt HEAD 1
.Os
.Sh NAME
@@ -57,6 +57,19 @@ where
is the name of the file.
.Sh EXIT STATUS
.Ex -std
+.Sh EXAMPLES
+To display the first 500 lines of the file
+.Ar foo :
+.Pp
+.Dl $ head -n 500 foo
+.Pp
+.Nm
+can be used in conjunction with
+.Xr tail 1
+in the following way to, for example, display only line 500 from the file
+.Ar foo :
+.Pp
+.Dl $ head -n 500 foo | tail -n 1
.Sh SEE ALSO
.Xr tail 1
.Sh HISTORY
OpenPOWER on IntegriCloud