#1  
Old 27th May 2005, 15:50
zizou zizou is offline
Junior Member
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default tail

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?
Reply With Quote
Sponsored Links
  #2  
Old 27th May 2005, 20:36
joe joe is offline
Junior Member
 
Join Date: Apr 2005
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

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

Code:
tail +10 file
__________________
Joe Topjian
email: joe@adminspotting.net
web: http://adminspotting.net
Reply With Quote
  #3  
Old 30th May 2005, 20:15
zizou zizou is offline
Junior Member
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks Joe!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.