I'm trying to use find
to list all installed applications. find /Applications -name "*.app"
. But this returns a list like:
/Applications/Firefox.app/Contents/MacOS/crashreporter.app
/Applications/Firefox.app/Contents/MacOS/plugin-container.app
/Applications/Firefox.app/Contents/MacOS/updater.app
Using find /Applications -name "*.app" -exec basename {} \;
returns a list like:
DVD Player.app
FaceTime.app
Firefox.app
This is better but what I want listed is the application and the directory its stored in: /Applications/Firefox.app
How can I list all installed applications without also listing the subdirectories within the application itself?