perl -i.bak -nle 's/search/replace/g unless $. & 2; print' file(s)