awk + Need to print everything (all rest fields) except $1 and $2

后端 未结 7 2169
既然无缘
既然无缘 2020-12-28 19:37

I have the following file and I need to print everything except $1 and $2 by awk

File:

INFORMATION DATA 12 33          


        
7条回答
  •  长发绾君心
    2020-12-28 20:11

    Although it adds an extra space at the beginning of each line compared to yael's expected output, here is a shorter and simpler awk based solution than the previously suggested ones:

    awk '{$1=$2=""; print}'
    

    or even:

    awk '{$1=$2=""}1'
    

提交回复
热议问题