1. 程式人生 > >Linux 文件創建、插入、替換

Linux 文件創建、插入、替換

gre 字符 bsp 插入 字符串 pre pos body inux

創建文件

touch newfile.txt

插入字符串

echo "aaa" >>/newfile.txt

替換字符串

sed -i "s/aaa/ccc/g" `grep aaa -rl /newfile.txt`

Linux 文件創建、插入、替換