通过Linux中的两个列对数据进行排序
I have a file as shown in the image below and I would like to sort this by 2 columns (chr) and then by 3rd column (bpos) in Linux. Please suggest to me what is the best way to get this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
排序可以通过:
-k2,2n
按第二列排序,数值-k3,3n
然后按第三列进行排序,数值sort can do it with:
-k2,2n
sort by 2nd column, numerically-k3,3n
then sort by 3rd column, numerically