In this case the Perl one-liner would be conceptually identical, the same length, but more performant (no calling out to rm):
diff -rs a/ b/ | perl -ane '/identical$/ && unlink $F[3]' diff -rs a/ b/ | perl -ane '/identical$/ && unlink $F[3]'No comments yet.