469,159 Members | 1,428 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,159 developers. It's quick & easy.

Unix command: Display excerpt of rows from line number n to n+10

Hi All,

I would like to know the unix command to display excerpt of rows from line number n to n+10 of a given file.

ex: display rows from 35624612 to 35624615 of a file.

thanks in advance
Oct 3 '07 #1
2 3405
Hi!

Try something like :
Expand|Select|Wrap|Line Numbers
  1. head -35624615 filename | tail -4
Oct 3 '07 #2
[...]
ex: display rows from 35624612 to 35624615 of a file.
Expand|Select|Wrap|Line Numbers
  1. sed -n 35624612,35624615p filename
Oct 3 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Paddy McCarthy | last post: by
6 posts views Thread by JS | last post: by
3 posts views Thread by Vik Rubenfeld | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.