perl -ne'print if /error/ or /warning/i' rc.log #### perl -pe'$_ x=/error|warning/i' rc.log