开发者

Change text using perl or python

There is开发者_StackOverflow no "sed" on my server so I should use python or perl to change recursive in all files old_text to new_text. Help me please to do it using perl or python.


perl -p -i -e 's/old_text/new_text/g' file1 file2 ...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜