Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

richardc (1662)

  (email not shown publicly)

Journal of richardc (1662)

Friday April 19, 2002
01:18 PM

ugly oneliner

[ #4331 ]
perl -pe '/^[+-]{3}/ || /^\@\@/ || s/$/\r/'

Part of this larger monstrosity:

cat 14416 | filterdiff -i 'perl/win32/Makefile' -i 'perl/win32/' | perl -pe '/^[+-]{3}/ || /^\@\@/ || s/$/\r/'

For unbreaking the patches that go to perl.perl5.changes for application to files with CRLF endings.