033mac使用sed注意问题

一、

❯ cat test.txt
15 abc
❯ sed -i 's/.\{3\}//' test.txt
sed: 1: "test.txt": undefined label 'est.txt'

二、解决

❯ sed -i ',' 's/.\{3\}//' test.txt

 

Reference: https://www.cnblogs.com/meitian/p/5907562.html

 

posted @ 2021-11-03 08:19  arun_yh  阅读(76)  评论(0编辑  收藏  举报