develooper Front page | perl.beginners | Postings from April 2008

Re: Best way to grab lines n thru x of a file

Thread Previous | Thread Next
From:
yitzle
Date:
April 10, 2008 13:22
Subject:
Re: Best way to grab lines n thru x of a file
or use sed!
To print lines 5 through 10:
sed -ne '5,10p' <filename>

Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About