【发布时间】:2012-03-31 00:48:30
【问题描述】:
在 linux shell 中,以下命令将递归搜索并用 'that' 替换所有 'this' 实例(我面前没有 Linux shell,但应该可以)。
find . -name "*.txt" -print | xargs sed -i 's/this/that/g'
在 OSX 上类似的命令会是什么样子?
【问题讨论】:
-
应该转移到
apple.stackexchange.com,因为它对于 linux 和所有开发人员来说都不够通用。