I'm trying to find a way to use perl to remove lines that contain:
perl -pi -e "s,errors:,,"
Since you mention Perl you can use:
perl -ne 'print unless /errors:|mirror|raid\*|pond/'
Alternative you can use sed or grep:
Or grep with re
grep -v 'errors:\|mirror\|raid\*\|pond'
You can add the
-inplace flag to both sed and Perl