2 ms·
Perl also supports -0 and is handy for some use cases because it won't spawn a process per line like xargs. # remove files without spawning lots of rm proces
by tyingq 8y ago
Perl also supports -0 and is handy for some use cases because it won't spawn a process per line like xargs.
# remove files without spawning lots of rm processes
find . -name "*.xyz" -print0 -type f| perl -0 -ne 'chomp;print "$_\n";unlink;'