Linux 文件创建、插入、替换 创建文件 touch newfile.txt 插入字符串 echo "aaa" >>/newfile.txt 替换字符串 sed -i "s/aaa/ccc/g" `grep aaa -rl /newfile.txt`