tail - output the last part of files


Usage

tail [OPTION]... [FILE]...

Print the last 10 lines (by default) of each FILE to standard output. With more than one FILE, precede each with a header giving the file name.

linux3[327]% cat txt

   #[1]Creative Commons [2]copyright

   It costs US$10 an hour to run Wikimedia websites. You can [3]donate
   here (http://wikimediafoundation.org/wiki/Fundraising) to help us
   raise $50,000 to keep our websites running smoothly. We have less than
   $15,000 to go thanks to [4]all those who have donated
   (http://wikimediafoundation.org/wiki/Fund_drives/2004/Q4/Most_recent_d
   ay)!


... (snipped) ...

 373. http://www.mediawiki.org/
 374. http://www.gnu.org/copyleft/fdl.html
 375. http://en.wikipedia.org/wiki/Wikipedia:Text_of_the_GNU_Free_Documentation_License
 376. http://en.wikipedia.org/wiki/Wikipedia:Copyrights
 377. http://en.wikipedia.org/wiki/Wikipedia:About
 378. http://en.wikipedia.org/wiki/Wikipedia:General_disclaimer

   Hidden links:
 379. http://plan9.bell-labs.com/plan9dist/
 380. http://en.wikipedia.org/wiki/Main_Page
linux3[328]%
linux3[328]% tail unix.txt
 373. http://www.mediawiki.org/
 374. http://www.gnu.org/copyleft/fdl.html
 375. http://en.wikipedia.org/wiki/Wikipedia:Text_of_the_GNU_Free_Documentation_License
 376. http://en.wikipedia.org/wiki/Wikipedia:Copyrights
 377. http://en.wikipedia.org/wiki/Wikipedia:About
 378. http://en.wikipedia.org/wiki/Wikipedia:General_disclaimer

   Hidden links:
 379. http://plan9.bell-labs.com/plan9dist/
 380. http://en.wikipedia.org/wiki/Main_Page
linux3[329]%

-n NUMBER

Print last NUMBER lines instead of default last 10.

linux3[333]% tail -n 1 mlb.h
#endif
linux3[334]%

Daniel J. Hood
Last modified: Thu Sep 30 14:42:23 EDT 2004