开发者

Change text using perl or python

开发者 https://www.devze.com 2023-04-04 03:56 出处:网络
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 \'

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

精彩评论

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

关注公众号