我尝试了以下代码失败
find Applications | xargs -0 grep Applications
Run Code Online (Sandbox Code Playgroud)
我也尝试了下面的失败
find Applications
Run Code Online (Sandbox Code Playgroud)
是不是喜欢的东西:
mdfind Applications | grep Applications
mdfind是Spotlight的命令行界面.不知何故,我怀疑这是你在寻找什么.
以下命令将查找您在其下安装的Mac应用程序的名称/Applications.
find /Applications -type d -name "*.app"
你的问题很有帮助,因为你没有说明你的整体意图是什么......