| tail.1 - sbase - suckless unix tools | |
| git clone git://git.suckless.org/sbase | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| tail.1 (833B) | |
| --- | |
| 1 .Dd October 8, 2015 | |
| 2 .Dt TAIL 1 | |
| 3 .Os sbase | |
| 4 .Sh NAME | |
| 5 .Nm tail | |
| 6 .Nd display final lines of files | |
| 7 .Sh SYNOPSIS | |
| 8 .Nm | |
| 9 .Op Fl f | |
| 10 .Op Fl c Ar num | Fl m Ar num | Fl n Ar num | Fl Ns Ar num | |
| 11 .Op Ar file ... | |
| 12 .Sh DESCRIPTION | |
| 13 .Nm | |
| 14 writes the last 10 lines of each | |
| 15 .Ar file | |
| 16 to stdout. | |
| 17 If no | |
| 18 .Ar file | |
| 19 is given, | |
| 20 .Nm | |
| 21 reads from stdin. | |
| 22 .Sh OPTIONS | |
| 23 .Bl -tag -width Ds | |
| 24 .It Fl c Ar num | Fl m Ar num | Fl n Ar num | Fl Ns Ar num | |
| 25 Display final | |
| 26 .Ar num | |
| 27 bytes | characters | lines | lines. | |
| 28 If | |
| 29 .Ar num | |
| 30 begins with '+' | |
| 31 it is an offset from the beginning of each | |
| 32 .Ar file . | |
| 33 If | |
| 34 .Ar num | |
| 35 begins with '-' it is as if no sign was given. | |
| 36 The default is 10 lines. | |
| 37 .It Fl f | |
| 38 If one | |
| 39 .Ar file | |
| 40 is specified, append lines to output as | |
| 41 .Ar file | |
| 42 grows. | |
| 43 .El | |
| 44 .Sh SEE ALSO | |
| 45 .Xr head 1 | |
| 46 .Sh STANDARDS | |
| 47 POSIX.1-2013. | |
| 48 .Pp | |
| 49 The | |
| 50 .Op Fl Ns Ar num | |
| 51 syntax is an extension to that specification. |