tail

Discussion in 'Technical' started by zizou, May 27, 2005.

  1. zizou

    zizou New Member

    Normally you use tail to show the last n lines of a file (e.g.

    Code:
    tail -n 100 file.txt
    to show the last 100 lines of file.txt.)
    But what I need is a way to show all lines of a file starting from, let's say, line 10. Is it possible?
     
  2. joe

    joe New Member HowtoForge Supporter

    You can do that by adding a + sign next to the number:

    Code:
    tail +10 file
    
     
  3. zizou

    zizou New Member

    Thanks Joe! :) :)
     

Share This Page