Deleting columns from a file with awk or from command line on linux

前端 未结 4 763
伪装坚强ぢ
伪装坚强ぢ 2020-12-28 15:46

How can I delete some columns from a tab separated fields file with awk?

c1 c2 c3 ..... c60

For example, delete columns be

4条回答
  •  旧巷少年郎
    2020-12-28 15:52

    This is what the cut command is for:

    cut -f1,2,30- inputfile
    

    The default is tab. You can change that with the -d switch.

提交回复
热议问题