如何在UNIX中递归替换单词 [英] How to recursively replace a word in UNIX
本文介绍了如何在UNIX中递归替换单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用其他func名称替换func名称。
是否有任何递归检查每个命令的命令文件并替换这个词?
问候
hkishn
Hi ,
I want to replace a func name with other func name .
Is there any command which recursively check for each file and replace the word ?
Regards
hkishn
推荐答案
你可能会编写自己的应用程序这将是一个很好的练习。
然而,看看这个 Stack Overflow [ ^ ]问题(你可以使用awk
代码模式匹配功能)。
You might write your own application. It would be a nice exercise.
However, have a look at this Stack Overflow[^] question (you may useawk
for the pattern matching functionality).
您可以结合使用找到 [ ^ ], awk [ ^ ]和 [ ^ ]命令,或编写程序来执行此操作。
You could use a combination of find[^], awk[^] and ed[^] commands, or write a program to do it.
这篇关于如何在UNIX中递归替换单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文