News for hackers. Stuff that matters.
Re:Useful Perl one-liners (2013) by tyingq on Tuesday November 29, 2016 @01:59PM (#13065336)
Ahh, yes, files with newlines.

You can use find -print0 | perl -0ne 'print($_);' ... using a null instead of newlines.

You're correct that -delete is easier in this case, but the perl one liner is handy (as a starting point) if you're doing something conditional, or changing file extensions in bulk, etc.

There are no comments on this comment yet.