Print rest of the fields in awk

后端 未结 6 1361
遥遥无期
遥遥无期 2021-02-02 06:46

Suppose we have this data file.

john 32 maketing executive
jack 41 chief technical officer
jim  27 developer
dela 33 assistant risk management officer

6条回答
  •  生来不讨喜
    2021-02-02 07:32

    Set the field(s) you want to skip to blank:

    awk '{$2 = ""; print $0;}' < file_name
    

    Source: Using awk to print all columns from the nth to the last

提交回复
热议问题