version 1.19, 2011/12/28 01:52:33 |
version 1.20, 2014/03/21 11:20:41 |
|
|
To display the first 500 lines of the file |
To display the first 500 lines of the file |
.Ar foo : |
.Ar foo : |
.Pp |
.Pp |
.Dl $ head -500 foo |
.Dl $ head -n 500 foo |
.Pp |
.Pp |
.Nm |
.Nm |
can be used in conjunction with |
can be used in conjunction with |
|
|
in the following way to, for example, display only line 500 from the file |
in the following way to, for example, display only line 500 from the file |
.Ar foo : |
.Ar foo : |
.Pp |
.Pp |
.Dl $ head -500 foo | tail -1 |
.Dl $ head -n 500 foo | tail -1 |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr cat 1 , |
.Xr cat 1 , |
.Xr less 1 , |
.Xr less 1 , |
|
|
.St -p1003.1-2008 |
.St -p1003.1-2008 |
specification. |
specification. |
.Pp |
.Pp |
The historic command line syntax is supported by this implementation. |
The historic syntax |
|
.Fl Ns Ar count |
|
is supported by this implementation. |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm |
.Nm |