News for hackers. Stuff that matters.
Re:Parsing JSON in Forty Lines of Awk by jcynix on Saturday June 28, 2025 @04:57PM (#44408136)
Sure, but my example was just that and I actually use /identical$/ as the pattern. Sorry for the typo.

And I use this "historic" one liner only when I know about the contents of both directories. As soon as I need a "safer" solution I use a Perl script and pattern matching, as I said.

Re:Parsing JSON in Forty Lines of Awk by poke646 on Saturday June 28, 2025 @07:35PM (#44409082)
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]'