Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

Assume I have a file with about 10000 lines.

How can I print 100 lines, starting from line 1200 to line 1300?

share|improve this question

marked as duplicate by cuonglm, slm Jun 29 '14 at 12:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 3 down vote accepted

With awk this would be awk 'NR >= 1200 && NR <= 1300'

with sed: sed -n '1200,1300 p' FILE

with head and tail: head -n 1300 FILE | tail -n 100

so many options, so many answers on stackexchange :)

share|improve this answer
Awesome, thank you . – Alireza Fallah Jun 29 '14 at 11:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.