Don't think of it as "deleting". Rather, matching only what you want. Perhaps writing the matches to a new file; and perhaps then overwriting the original file.
perl -lne 'print unless /dontwant/' log > log.new
In reply to Re: RegEx Question!
by hbm
in thread RegEx Question!
by omegaweaponZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |