sed 删除每行最后一个元素

sed -ir 's/(.){1}$//' lineorder_2.tbl

原文地址:https://www.cnblogs.com/stdpain/p/14041287.html