sed命令2

测试文件sedtest.txt,内容为:

[root@localhost sed]# cat sedtest.txt 
my cat's name is betty
   it's a cat;
this is your dog
   its name is lokia;
that is your cat
   it is a gitl
[root@localhost sed]# 
原文地址:https://www.cnblogs.com/vincent4code/p/5953014.html