perl -i.orig -pe '$_="" if /bad line/' big-file.txt