Skip to content
Advertisement

Mac equivalent for find -printf

Is there a MacOS terminal equivalent to

find . -type f -printf %P\\n

Mainly, I want to replicate the -printf behaviour on a Mac.

Advertisement

Answer

The unix command line tools Apple ships are terribly outdated; sometimes 12 or 15 years old.

You can install find from Macports:

sudo port install findutils

That version of find has the -printf option.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement