linux 替换文件中的文本

sed -i 's/old-text/new-text/g' input.txt