Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 SunOS 5.10 机器上递归查找和替换文本文件中的字符串的 UNIX 命令是什么?
前任:
我想用当前目录中的文件递归替换SIR01111字符串SIR02222。
SIR01111
SIR02222
find . -name "*.txt"|xargs perl -pi -e 's/SIR01111/SIR02222/g'