由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - linux如何批量替换
相关主题
perl能不能一次把一个str中的a替换成x,b替换成y? (转载)请教一个perl的替换问题。
find a file in linux but got permission denied as admiin (转载)Shell  sed 命令替换功能的疑问
ssh question on linux请问macbook自带的perl怎样可以替换掉? (转载)
strange behavior about chmod 777 -R (转载)怎样用perl批量重命名文件
What's the newest version of MatLab?Re: 怎样用perl批量重命名文件 (转载)
请教一个变态的regular expression 替换批量下载mp3音频流文件最好用什么软件?
awk or sed questiongoodbug你现在懂message queue了么?
C/C++生成PDFalt - del - ctrl not working
相关话题的讨论汇总
话题: abc话题: locate话题: xxx话题: 批量话题: 修改
进入Programming版参与讨论
1 (共1页)
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
5
thanks by the way
1 (共1页)
进入Programming版参与讨论
相关主题
alt - del - ctrl not workingWhat's the newest version of MatLab?
突破谷歌地图API的次数限制?替换方案?请教一个变态的regular expression 替换
携程版"rm -fr" (转载)awk or sed question
.net里面有对应Spring等的东西吗C/C++生成PDF
perl能不能一次把一个str中的a替换成x,b替换成y? (转载)请教一个perl的替换问题。
find a file in linux but got permission denied as admiin (转载)Shell  sed 命令替换功能的疑问
ssh question on linux请问macbook自带的perl怎样可以替换掉? (转载)
strange behavior about chmod 777 -R (转载)怎样用perl批量重命名文件
相关话题的讨论汇总
话题: abc话题: locate话题: xxx话题: 批量话题: 修改