Re:Marcel the Shell
by js2 on Tuesday October 24, 2023 @01:51AM
(#37995222)
Yes, I know that, but it's also exceedingly rare for a filename to contain a newline and using -exec is extremely inefficient. I also wrote that on my iPad. Typically I'd use a combination of -print0 and xargs -0 for anything more formal than a one-liner on the command line.
The larger bug in my example is that it fails if any of the directories in the path contain a "." in their name!
The larger bug in my example is that it fails if any of the directories in the path contain a "." in their name!