TAIL.1
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. .TH TAIL 1
  2. .SH NAME
  3. tail - print the last few lines of a file
  4. .SH SYNOPSIS
  5. fBtailfR [fB-c fInfR] [fB-f] [fB-n fInfR] [fIfilefR] ...fR
  6. .br
  7. .de FL
  8. .TP
  9. \fB\$1\fR
  10. \$2
  11. ..
  12. .de EX
  13. .TP 20
  14. \fB\$1\fR
  15. # \$2
  16. ..
  17. .SH OPTIONS
  18. .FL "-c" "The count refers to characters"
  19. .FL "-f" "On FIFO or special file, keep reading after EOF"
  20. .FL "-n" "The count refers to lines"
  21. .SH EXAMPLES
  22. .EX "tail -n 6" "Print last 6 lines of fIstdinfR"
  23. .EX "tail -c 20 file" "Print the last 20 characters of fIfilefR"
  24. .EX "tail -n 1 file1 file2" "Print last line of two files"
  25. .EX "tail -n +8 file" "Print the tail starting with line 8"
  26. .SH DESCRIPTION
  27. .PP
  28. The last few lines of one or more files are printed.
  29. The default count is 10 lines.
  30. The default file is fIstdinfR.
  31. If the value of fInfR for the fB-cfR or fB-nfR flags starts with
  32. a + sign, counting starts at the beginning, rather than the end of the file.
  33. .SH "SEE ALSO"
  34. .BR head (1).