linux - Mac 上相当于 find -printf

标签 linux macos shell

是否有相当于 的 MacOS 终端

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

主要是,我想在 Mac 上复制 -printf 行为。

最佳答案

Apple 提供的 unix 命令行工具已经非常过时了;有时 12 或 15 岁。

您可以从 Macports 安装 find:

sudo port install findutils

该版本的 find 具有 -printf 选项。

关于linux - Mac 上相当于 find -printf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47847131/

相关文章:

windows - 压缩/压缩文件感知增量上传(跨平台)

linux - 如何使用 nohup 在 linux 中将进程作为后台进程运行?

Xcode,如何检索开发人员 ID 以在 mac 商店外分发?

wordpress - 启用 https ssl wordpress 插件,某些 css 样式表不会在第一次尝试时加载。问题仅发生在 Mac 上

linux - 如何正确添加前缀和后缀双引号?

python - NVIDIA Jetson Nano的PyTorch的Yocto Warrior Bitbake食谱

linux - 删除旧版本的 Ubuntu 操作系统

xcode - 为什么我无法对这个 Mac 应用程序进行代码签名?

bash - 操作 sh 中的参数

bash - 如何在 awk 脚本中使用 shell 变量?