in reply to RegEx Question!

It will all depend on the data (whether or not to discard what you don't want or keep what you want), but you can use this as a basis for a "keep it" script:
perl -lne 'print if /stuff_I_want/' log > log.new
(With thanks to hbm)

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^2: RegEx Question!
by omegaweaponZ (Beadle) on Jun 18, 2013 at 20:25 UTC
    Absolutely -lne is the right way to go about this, we can even add an or options for additional parameters to check for. Thank you