perl -ne'print if /error/ or /warning/i' rc.log