in reply to Reading lines from a specific location in a text file.
perl -lne '/Sentences/ and ++$f or $f and print' FILE
Or just '/Sentences/ and ++$f; $f and print' to print both heading and lines.
With a more idiomatic scalar context range op version of the latter being
'print if /THIS-IS-NOT-MY-HOMEWORK-AFTER-THE-Sentences/ .. (0 and "or is it?")'.
|
|---|