find
を使用して、インストールされているすべてのアプリケーションを一覧表示しようとしています。 find /Applications -name "*.app"
。しかし、これは以下のようにリストを返す:find /Applications -name "*.app" -exec basename {} \;
を使用してインストールされているすべてのアプリケーションの検索方法
/Applications/Firefox.app/Contents/MacOS/crashreporter.app
/Applications/Firefox.app/Contents/MacOS/plugin-container.app
/Applications/Firefox.app/Contents/MacOS/updater.app
ことのようなリストを返します。
DVD Player.app
FaceTime.app
Firefox.app
これは良いですが、私が列挙されたいことは、そのアプリケーションおよびディレクトリに格納されます。/Applications/Firefox.app
インストールされているすべてのアプリケーションを、アプリケーション自体の中のサブディレクトリも一覧表示せずに一覧表示するにはどうすればよいですか? -maxdepth 1
は、 "再帰レベル"
'find/Applications -name \ *。app | grep -v "\/Contents \ /" ' –