awk去掉每行最后n个字符

awk '{sub(/.{n}$/,"")}1' nation.tbl > nation.tbl2

把n替换成具体长度

posted @ 2018-10-23 01:21  卡卡西村长  阅读(854)  评论(0编辑  收藏  举报