【发布时间】:2017-09-28 03:20:18
【问题描述】:
用于查找名称中包含foo 的所有文件。
find / -name *foo*
例如结果是
/etc/lib/football
/var/log/some/somefooandother
/home/me/anotherfoo
/etc/all/files/includingfooinnamefoo
但是我如何替换所有 foo -> bar 在这些文件的名称中?
/etc/lib/bartball
/var/log/some/somebarandother
/home/me/anotherbar
/etc/all/files/includingbarinnamebar
【问题讨论】: