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?")'.
In reply to Re: Reading lines from a specific location in a text file.
by jakobi
in thread Reading lines from a specific location in a text file.
by peokai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |