[Midnightbsd-cvs] src [7157] trunk/usr.bin/head/head.1: add some examples
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jul 26 13:12:06 EDT 2015
Revision: 7157
http://svnweb.midnightbsd.org/src/?rev=7157
Author: laffer1
Date: 2015-07-26 13:12:05 -0400 (Sun, 26 Jul 2015)
Log Message:
-----------
add some examples
Modified Paths:
--------------
trunk/usr.bin/head/head.1
Modified: trunk/usr.bin/head/head.1
===================================================================
--- trunk/usr.bin/head/head.1 2015-07-26 17:10:42 UTC (rev 7156)
+++ trunk/usr.bin/head/head.1 2015-07-26 17:12:05 UTC (rev 7157)
@@ -28,7 +28,7 @@
.\" @(#)head.1 8.1 (Berkeley) 6/6/93
.\" $MidnightBSD$
.\"
-.Dd June 6, 1993
+.Dd March 16, 2013
.Dt HEAD 1
.Os
.Sh NAME
@@ -57,6 +57,19 @@
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
More information about the Midnightbsd-cvs
mailing list