一、
❯ 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
一、
❯ 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