如何用shell将文件中的字符串进行替换

2025-04-30 04:43:10
推荐回答(1个)
回答1:

sed -i s/xx1/xx2/g file

xx1需要替换的字符串,xx2替换后