我怎样才能在bash选项卡中的文件DELIM第二和第三列? [英] How can i get 2nd and third column in tab delim file in bash?
本文介绍了我怎样才能在bash选项卡中的文件DELIM第二和第三列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要使用bash来处理制表符分隔的文件。我只需要第二列和第三到一个新的文件。任何帮助真的AP preciated。
I want to use bash to process a tab delimited file. I only need the second column and third to a new file. Any help is really appreciated.
谢谢
Meraj
Thanks Meraj
推荐答案
切(1)
作出前pressly为此:
cut(1)
was made expressly for this purpose:
cut -f 2-3 input.txt > output.txt
这篇关于我怎样才能在bash选项卡中的文件DELIM第二和第三列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文