3 ms·
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 i
by tyingq 10y ago
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.