How to delete the first column ( which is in fact row names) from a data file in linux?

前端 未结 5 1890
失恋的感觉
失恋的感觉 2021-01-01 11:10

I have data file with many thousands columns and rows. I want to delete the first column which is in fact the row counter. I used this command in linux:

cut          


        
5条回答
  •  一生所求
    2021-01-01 11:43

    You can use cut command with --complement option:

    cut -f1 -d" " --complement input.file > output.file
    

    This will output all columns except the first one.

提交回复
热议问题