A Perl program to extract lines from the middle of a file
I've always been a big fan of the Unix head and tail commands, but several times I have wanted to print a range of lines from the middle of a text file -- not just the beginning or end of a file. Not liking the available solutions, I wrote my own.
Here is the source code for a program named "
extract.pl", which prints lines from a text file beginning at the start line you specify and ending at the stop line.