$ cat hello.txt
hello linux shell world
$sed -i 's/linux/LINUX/g' hello.txt
$ cat hello.txt
hello LINUX shell world
$ sed -i.bak 's/LINUX/linux/g' hello.txt
$ ls
hello.txt hello.txt.bak
$ cat hello.txt
hello linux shell world
$ cat hello.txt.bak
hello LINUX shell world
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |