summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/head.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man1/head.1')
-rw-r--r--usr/src/man/man1/head.156
1 files changed, 14 insertions, 42 deletions
diff --git a/usr/src/man/man1/head.1 b/usr/src/man/man1/head.1
index 1d9399bdad..5f37a26077 100644
--- a/usr/src/man/man1/head.1
+++ b/usr/src/man/man1/head.1
@@ -3,14 +3,14 @@
.\" Copyright 1989 AT&T
.\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
.\" Portions Copyright (c) 1982-2007 AT&T Knowledge Ventures
-.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
+.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
.\" This notice shall appear on any product containing this material.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH head 1 "2 Nov 2007" "SunOS 5.11" "User Commands"
+.TH HEAD 1 "Nov 2, 2007"
.SH NAME
head \- display first few lines of files
.SH SYNOPSIS
@@ -78,34 +78,28 @@ of the following characters to specify a different unit other than a single
byte:
.sp
.ne 2
-.mk
.na
\fB\fBb\fR\fR
.ad
.RS 5n
-.rt
512 bytes
.RE
.sp
.ne 2
-.mk
.na
\fB\fBk\fR\fR
.ad
.RS 5n
-.rt
1-kilobyte
.RE
.sp
.ne 2
-.mk
.na
\fB\fBm\fR\fR
.ad
.RS 5n
-.rt
1-megabyte
.RE
@@ -119,24 +113,20 @@ For backwards compatibility, \fB-number\fR is equivalent to \fB-n\fR number.
The following options are supported by \fB/usr/bin/head\fR:
.sp
.ne 2
-.mk
.na
\fB\fB-n\fR \fInumber\fR\fR
.ad
.RS 13n
-.rt
The first \fInumber\fR lines of each input file is copied to standard output.
The \fInumber\fR option-argument must be a positive decimal integer.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-\fR\fInumber\fR\fR
.ad
.RS 13n
-.rt
The \fInumber\fR argument is a positive decimal integer with the same effect as
the \fB-n\fR \fInumber\fR option.
.RE
@@ -152,7 +142,6 @@ The following options are supported by the head built-in command in
\fBksh93\fR:
.sp
.ne 2
-.mk
.na
\fB\fB-n\fR\fR
.ad
@@ -161,13 +150,11 @@ The following options are supported by the head built-in command in
\fB\fB--lines=\fR\fIlines\fR\fR
.ad
.RS 18n
-.rt
Copy lines from each file. The default value is \fB10\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-c\fR\fR
.ad
@@ -176,13 +163,11 @@ Copy lines from each file. The default value is \fB10\fR.
\fB\fB--bytes=\fR\fIchars\fR\fR
.ad
.RS 18n
-.rt
Copy \fIchars\fR bytes from each file.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-q\fR\fR
.ad
@@ -191,13 +176,11 @@ Copy \fIchars\fR bytes from each file.
\fB\fB--quiet|silent\fR\fR
.ad
.RS 18n
-.rt
Never output filename headers.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-s\fR\fR
.ad
@@ -206,13 +189,11 @@ Never output filename headers.
\fB\fB--skip=\fR\fIskip\fR\fR
.ad
.RS 18n
-.rt
Skip \fIskip\fR characters or lines from each file before copying.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-v\fR\fR
.ad
@@ -221,7 +202,6 @@ Skip \fIskip\fR characters or lines from each file before copying.
\fB\fB--verbose\fR\fR
.ad
.RS 18n
-.rt
Always output filename headers.
.RE
@@ -231,12 +211,10 @@ Always output filename headers.
The following operand is supported:
.sp
.ne 2
-.mk
.na
\fB\fB\fIfilename\fR\fR\fR
.ad
.RS 12n
-.rt
A path name of an input file. If no \fIfile\fR operands are specified, the
standard input is used.
.RE
@@ -274,23 +252,19 @@ that affect the execution of \fBhead\fR: \fBLANG\fR, \fBLC_ALL\fR,
The following exit values are returned:
.sp
.ne 2
-.mk
.na
\fB\fB0\fR\fR
.ad
.RS 6n
-.rt
Successful completion.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB>0\fR\fR
.ad
.RS 6n
-.rt
An error occurred.
.RE
@@ -303,17 +277,16 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-CSIEnabled
+CSI Enabled
_
-Interface StabilityCommitted
+Interface Stability Committed
_
-StandardSee \fBstandards\fR(5).
+Standard See \fBstandards\fR(5).
.TE
.SS "ksh93"
@@ -321,13 +294,12 @@ StandardSee \fBstandards\fR(5).
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilitySee below.
+Interface Stability See below.
.TE
.sp