|
Although I've written my own Perl program to do this, I was just reminded that this can be done with the sed command in Unix/Linux. Here's a simple example. Supposed you want to print lines 500 through 600 from a file named reallyBigFile.txt. Just issue this command and you'll get what you want:
sed -n '500,600p' reallyBigFile.txt
|