LAST v1.31 - copy last n lines |
Documentation revised 21 Oct 00 - Copyright (c) 1996-2000 by Rune Berg. TextTools Freeware. |
Contents:
Usage | Top || Next |
last [log logfile] [option] n [infile] [to outfile]
See Understanding The Usage Section for details.
Description | Top || Previous || Next |
last copies the last n lines of infile to outfile.
If infile has n or fewer lines, then last copies all of infile.
n must be in the range 0..2147483647.
If you don't specify infile, last reads from standard input.
If you don't specify outfile, last writes to standard output.
If you don't specify logfile, last writes error messages to standard
error.
Options | Top || Previous || Next |
last recognizes the following command line options:
Option | Function |
---|---|
-v | Print version banner and usage info to standard error (or logfile, if given), then exit. |
Limitations | Top || Previous || Next |
last can run out of memory if n is large.
Return Codes | Top || Previous || Next |
last returns with one of the following codes ("error levels"):
Code | Meaning |
---|---|
0 | Success |
101 | Out of memory |
102 | Incorrect/missing command line arguments |
104 | Error opening file |
105 | I/O Error |
107 | File name clash |
For more details, see TextTools General Features.
Version History | Top || Previous |
These are the released versions of last:
Version | Date | Changes |
---|---|---|
1.01 | 25-Feb-96 | n/a |
1.10 | 26-Sep-96 |
|
1.11 | 9-May-97 |
|
1.20 | 13-Jul-97 |
|
1.30 | 2-jan-99 |
|
1.31 | 21-Oct-00 |
|
End of document |