1,文件1.txt中每一行以空格分割,删除1.txt中最后一列,如下所示,需要删除 c e g
a b c
d e f e
d d d d g
命令 awk '{$NF="";print}' 1.txt