andrea@amanda{~/scripts}: cat datafile
This is line 1.
This is line 2.
This is line 3.
This is line 4.
This is line 5.
This is line 6.
This is line 7.
This is line 8.
This is line 9.
This is line 10.
andrea@amanda{~/scripts}: extract
usage: extract start=<rec1> end=<rec2> [<file>]
example: extract start=3 end=22 car0919b.cgn
will print records 3 through 22 from file car0919b.cgn to stdout
example: cat reclist | sort | extract start=2 > reclist.new
will print records 2 through EOF from stdin (reclist) to reclist.new
andrea@amanda{~/scripts}: extract start=3 end=8 datafile
This is line 3.
This is line 4.
This is line 5.
This is line 6.
This is line 7.
This is line 8.