sed 的用法

1:删除字符串中的特定字符

如删除文档中www.amber.com.conf的后缀

sed 's/.conf//g' a.txt

猜你喜欢

转载自www.cnblogs.com/zhuhaofeng01/p/10458130.html