s*****o 发帖数: 1262 | 1 用 $locate xxx 可以找到全部的xxx文件
如果其中一个今天刚刚修改了,然后我想update everybody with newest version,怎
么弄?
批量删除倒是可以用:
$locate xxx > file
$xargs rm < file |
j******n 发帖数: 271 | 2 Not sure about what kind of 修改 you did.
But if it is something like replacing abc with ABC in all, this can do it:
sed -ie 's/abc/ABC/g' `$locate xxx` |
j******n 发帖数: 271 | 3 Not sure about what kind of 修改 you did.
But if it is something like replacing abc with ABC in all, this can do it:
sed -ie 's/abc/ABC/g' `$locate xxx` |
s*****o 发帖数: 1262 | 4 every time i did soem change to my program, i want the same files in other
folders also be updated. otherwise after a while i am not sure which one is
"correct one" and may get different results for "same" programs. |
s*****o 发帖数: 1262 | |