How can I get 2nd and third column in tab delim file in bash?

前端 未结 3 1734
旧时难觅i
旧时难觅i 2020-12-29 03:01

I want to use bash to process a tab delimited file. I only need the second column and third to a new file.

3条回答
  •  伪装坚强ぢ
    2020-12-29 03:54

    Cut is probably the best choice here, second to that is awk

    awk -F"\t" '{print $2 "\t" $3}' input > out
    

提交回复
热议问题