001、
[root@pc1 test2]# ls a.txt [root@pc1 test2]# cat a.txt ## 测试数据 j d e w e th d e s d g e t f g w e t [root@pc1 test2]# sed 's/e.*e//' a.txt ## 删除e之间的数据 j d s d g t
001、
[root@pc1 test2]# ls a.txt [root@pc1 test2]# cat a.txt ## 测试数据 j d e w e th d e s d g e t f g w e t [root@pc1 test2]# sed 's/e.*e//' a.txt ## 删除e之间的数据 j d s d g t