cut-tail¶
| Type: | command |
|---|---|
| Package: | prepDATA/1.1 — Conversion, Transformation and Plotting of Basic Data Files |
| Namespace: | &type1 |
Description¶
The tail utility displays the contents of file or, by default, its standard input, to the standard output.
Usage¶
-
cut-tail {options} -
Bash equivalent: tail -n {options} - manpagesFile: manpages, Node: tail, Up: (dir)..TAIL(1) BSD General Commands Manual TAIL(1).NAMEtail – display the last part of a file.SYNOPSIStail [-F | -f | -r] [-q] [-b number | -c number | -n number] [file …].DESCRIPTIONThe tail utility displays the contents of file or, by default, its stan-dard input, to the standard output..The display begins at a byte, line or 512-byte block location in theinput. Numbers having a leading plus (`+’) sign are relative to thebeginning of the input, for example, ``-c +2’’ starts the display at thesecond byte of the input. Numbers having a leading minus (`-‘) sign orno explicit sign are relative to the end of the input, for example, ``-n2’’ displays the last two lines of the input. The default starting loca-tion is ``-n 10’‘, or the last 10 lines of the input..The options are as follows:.-b numberThe location is number 512-byte blocks..-c numberThe location is number bytes..-f The -f option causes tail to not stop when end of file isreached, but rather to wait for additional data to be appended tothe input. The -f option is ignored if the standard input is apipe, but not if it is a FIFO..-F The -F option implies the -f option, but tail will also check tosee if the file being followed has been renamed or rotated. Thefile is closed and reopened when tail detects that the filenamebeing read from has a new inode number. The -F option is ignoredif reading from standard input rather than a file..-n numberThe location is number lines..-q Suppresses printing of headers when multiple files are beingexamined..-r The -r option causes the input to be displayed in reverse order,by line. Additionally, this option changes the meaning of the-b, -c and -n options. When the -r option is specified, theseoptions specify the number of bytes, lines or 512-byte blocks todisplay, instead of the bytes, lines or blocks from the beginningor end of the input from which to begin the display. The defaultfor the -r option is to display all of the input..If more than a single file is specified, each file is preceded by aheader consisting of the string ``==> XXX <==’’ where XXX is the name ofthe file unless -q flag is specified..EXIT STATUSThe tail utility exits 0 on success, and >0 if an error occurs..
-