由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - replace a string in all files under a directory?
相关主题
how to search a pattern in all filesa question about "find"?
Help!how to let grep search
unix commands questionhow to write a recursive fcn using ksh to find all the occurances of a file?
ask a stupid question about DOS什么东东能将目录及其子目录下的.tar文件展开!
what is the command option for this?FTP Help
How to find a file in the deep children directory?Is there any software can D/L a whole directory?
where is the pre-build version of cxterm-solarisWho knows this shell varialbe?
coconut,关于directory grep的问题有没有cp或ftp所有文件和子目录里的文件的命令?
相关话题的讨论汇总
话题: string话题: directory话题: replace话题: files
进入Unix版参与讨论
1 (共1页)
p*****R
发帖数: 74
1
I want to replace a string with another string in all files
under a directory, including subdirectories. Could you tell
me what UNIX command can do this? btw, can I use grep to
find a string in all the
subdirectories recursively?
q***e
发帖数: 90
2
I think no single command can do that.
Yo need to write a program or script to perform
the task. The followong program such as grep
awk,sed
will be useful. Referr to the manual if you are not
familiar with such commands, esp. awk.

【在 p*****R 的大作中提到】
: I want to replace a string with another string in all files
: under a directory, including subdirectories. Could you tell
: me what UNIX command can do this? btw, can I use grep to
: find a string in all the
: subdirectories recursively?

1 (共1页)
进入Unix版参与讨论
相关主题
有没有cp或ftp所有文件和子目录里的文件的命令?what is the command option for this?
一个初级的shell scripting问题How to find a file in the deep children directory?
A simple question!where is the pre-build version of cxterm-solaris
[转载] 问一个问题coconut,关于directory grep的问题
how to search a pattern in all filesa question about "find"?
Help!how to let grep search
unix commands questionhow to write a recursive fcn using ksh to find all the occurances of a file?
ask a stupid question about DOS什么东东能将目录及其子目录下的.tar文件展开!
相关话题的讨论汇总
话题: string话题: directory话题: replace话题: files