You can also edit "in place" so that it actually looks as deleting the lines you don't want from the original file. Modifying HBM's example, this could look like this:
perl -i.bak -ne 'print unless /dontwant/' my_file.txtThere, unwanted lines will be removed from my_file.txt and the original version of the file will be saved with the .bak extension added.
In reply to Re: RegEx Question!
by Laurent_R
in thread RegEx Question!
by omegaweaponZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |