linux 中如何删除特定字符之间的数据

 

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

 

 

posted @ 2022-10-26 22:46  小鲨鱼2018  阅读(294)  评论(0编辑  收藏  举报