perl -lne 'print if /stuff_I_want/' log > log.new