首页
Linux下简单修改某文件的字符串
sed -i 's/str1/str2/g' filename
例子:sed -i 's/123/456/g' 1.txt
解释:将1.txt文件中的"123"替换为"456"
Linux基本命令
相关
linux基本命令
标签