in reply to Re^3: Extracting specific Data
in thread Extracting specific Data
And what are the requirements when regions overlap? And what if start/end words double?
You should look into constructs like
$ perl -ne'/start/i .. /end/i and print' file $ perl -ne'/\b start \b/ix ... /\b end \b/ix and print' file
And start reading :)
|
|---|