perl -pe '/^[+-]{3}/ || /^\@\@/ || s/$/\r/'
Part of this larger monstrosity:
For unbreaking the patches that go to perl.perl5.changes for application to files with CRLF endings.cat 14416 | filterdiff -i 'perl/win32/Makefile' -i 'perl/win32/makefile.mk' | perl -pe '/^[+-]{3}/ || /^\@\@/ || s/$/\r/'