Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
tail(1) OSS Shell and Utilities Reference Manual
EXAMPLES
1. To write the last 10 lines of a file named notes,enter:
tail notes
2. To write the last 20 lines of notes,enter:
tail -n -20 notes
3. To write notes a page at a time, starting with the 200th byte from the beginning, enter:
tail +200c notes more
4. To follow the growth of a file named accounts,enter:
tail -n -1 -f accounts
This command writes the last line of accounts and then continues to write any lines that
have been added to the end of the file until the command is stopped by the Interrupt key
sequence.
EXIT VALUES
The tail command returns the following exit values:
0 (zero) The command completed successfully.
>0 An error occurred.
RELATED INFORMATION
Commands: cat(1), more(1).
STANDARDS CONFORMANCE
This command conforms to the XPG4 Version 2 specification with extensions.
The -r flag is an HP extension to the XPG4 Version 2 specification.
9−4 Hewlett-Packard Company 527188-007