3

Tip #504   How to print some lines from a file

To print only the 3rd line:
sed -n 3p file


To print lines from 3 through 7:
sed -n 3,7p file

 
  • TAGS: