If your files aren't too big, then this might get you started.
perl -0777 -e"print <stdin> =~ m[( \Q$ARGV[0]\E .*? \Q$ARGV[1]\E )]sxg +" "#BG" "#EN" < yourinputfile >youroutputfile
Note: The quoting will be different for *nix. Using 's instead of "s will probably work, and you may not need to quote your start and end strings depending upon what they contain and which shell you are using.
In reply to Re: File Filtering... Help
by BrowserUk
in thread File Filtering... Help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |