我尝试将 svn:keywords 属性添加到所有现有的 *.php 和 *.phtml 文件中。因此,我使用这个命令:
find . -regex '.*\.php' -o -regex '.*\.phtml'|xargs svn propset svn:keywords "Id"
根据Mateusz Loskot的说法,这应该将该属性添加到所有文件中。如果我运行find . -regex '.*\.php' -o -regex '.*\.phtml'
,则找到所有文件,但 xargs 返回此消息:xargs: svn: No such file or directory
.
我还尝试导出找到的列表 ( >> ~/temp
) 并用于xargs -a
从文件输入中读取参数,但没有成功。如何更新我的所有 php 文件?
PS。我使用 Kubuntu Linux Natty (11.04),它内置了 bash 4.2.8 和 xargs 4.4.2(如果这可能重要的话)