PDA

View Full Version : tail


zizou
27th May 2005, 15:50
Normally you use tail to show the last n lines of a file (e.g.

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?

joe
27th May 2005, 20:36
You can do that by adding a + sign next to the number:


tail +10 file

zizou
30th May 2005, 20:15
Thanks Joe! :) :)