tail-displays the tail end of a file

 <  Day Day Up  >  

tail ”displays the tail end of a file

 tail +[number [ lbc ] [ f ] [ filename ] tail +[number [ l ] [ rf ] [ filename ] 

When a plus sign precedes the number, tail displays blocks, characters , or lines counting from the beginning of the file. If a hyphen precedes the number, tail counts from the end of the file.

Example A.55.
 1   tail +50 filex 2   tail -20 filex 3   tail filex 

EXPLANATION

  1. Displays contents of filex starting at line 50.

  2. Displays the last 20 lines of filex .

  3. Displays the last 10 lines of filex .

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net