print or display certain number of file

Hi,

I am sure this is possible in awk or sed or a combination of the two.
Can someone help me determine the best way to display or print certain section of a file, ie only certain number of lines.

Example: File1 1 has 20 lines.
I need to be able to print from line 5 to line 10 of this file.

How can I get this done.

I know sed -n '5 p' File1 will get me the 5 line.
However I need a range of lines from this file.
Please let me know how to do this

Thx

One way:

sed -n '5,10p' file1

Jim,

Thanks. Works like a charm.

Regards,
Francis