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 :)
In reply to Re^4: Extracting specific Data
by Tux
in thread Extracting specific Data
by maheshkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |