s/hello.*goodbye//g;
Where the begin word is "hello" and the end word is "goodbye". If you in *NIX (this might work in Windoze also but I havn't tested it) you could give this as a command line argument using the -p -i and -e switchs:
perl -pi -e 's/hello.*goodbye//g' [FILENAME]
-Ben Jacobs (dooberwah)
one thing i can tell you is you got to be free
http://dooberwah.perlmonk.org
In reply to Re: script for removing certain text
by dooberwah
in thread script for removing certain text
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |