是否有相当于的MacOS终端
find . -type f -printf %P\\\\n
主要是,我想在Mac上复制-printf行为。
unix命令行工具Apple船只非常过时;有时12或15岁。
你可以从Macports安装find:
find
sudo port install findutils
那个版本的find有-printf选项。
-printf
如果你总是从.开始搜索,你应该可以使用这个:
.
$ find . -type f | sed -e 's/\.\///'