If your file fits in memory and you want the rest of the
line after the RE try: perl -i -e 'undef $/; ($dump, $keep)= split /RE/, <>; print $keep;' file
Now if you want to keep lines AFTER the RE this should work...
but it does not! Anybody can point my mistake?: perl -i -p -e '<> until( $ok || m/RE/); $ok=1 ' foo