I want to sort my file shown belowchr17   84938   85187   1   100 1chr12   86723   87265   2   100 1chr12   87368   87556   11  100 1chr12   87704   87880   10  100 1chr12   88018   88256   3   75  1chr12   88018   88569   1   25  1chr17   88171   69528   1   100 2chr12   88393   88569   6   100 1chr12   88750   88859   3   100 1chr12   88772   88859   3   100 1chr12   89019   89674   7   100 1chr12   89828   90586   1   100 1chr12   90656   90795   3   100 1chr17   93459   92763   1   100 2chr17   96901   69528   4   100 2chr17   100273  99697   1   100 2chr16   101557  97558   13  100 2chr16   103475  101646  8   100 2chr16   104059  105458  18  100 1chr16   105550  105776  19  100 1chr16   105883  106538  17  100 1chr16   106614  107085  20  100 1chr18   107887  109384  1   100 1chr16   108971  108759  2   100 2First I want to sort on column1 then column 2 and then column 3 (all ascending order)I did that in excel and got this resultchr12   86723   87265   2   100 1chr12   87368   87556   11  100 1chr12   87704   87880   10  100 1chr12   88018   88256   3   75  1chr12   88018   88569   1   25  1chr12   88393   88569   6   100 1chr12   88750   88859   3   100 1chr12   88772   88859   3   100 1chr12   89019   89674   7   100 1chr12   89828   90586   1   100 1chr12   90656   90795   3   100 1chr16   101557  97558   13  100 2chr16   103475  101646  8   100 2chr16   104059  105458  18  100 1chr16   105550  105776  19  100 1chr16   105883  106538  17  100 1chr16   106614  107085  20  100 1chr16   108971  108759  2   100 2chr17   84938   85187   1   100 1chr17   88171   69528   1   100 2chr17   93459   92763   1   100 2chr17   96901   69528   4   100 2chr17   100273  99697   1   100 2chr18   107887  109384  1   100 1I used on unix command line this commandsort -k 1,1 -nk2 -nk3 file.txtIt gave me:chr17   84938   85187   1   100 1chr12   86723   87265   2   100 1chr12   87368   87556   11  100 1chr12   87704   87880   10  100 1chr12   88018   88256   3   75  1chr12   88018   88569   1   25  1chr17   88171   69528   1   100 2chr12   88393   88569   6   100 1chr12   88750   88859   3   100 1chr12   88772   88859   3   100 1chr12   89019   89674   7   100 1chr12   89828   90586   1   100 1chr12   90656   90795   3   100 1chr17   93459   92763   1   100 2chr17   96901   69528   4   100 2chr17   100273  99697   1   100 2chr16   101557  97558   13  100 2chr16   103475  101646  8   100 2chr16   104059  105458  18  100 1chr16   105550  105776  19  100 1chr16   105883  106538  17  100 1chr16   106614  107085  20  100 1chr18   107887  109384  1   100 1chr16   108971  108759  2   100 2What can i do here to get output similar to excel?Any help is appreciated.Thanks
sorting a file on coulumn 1 then column 2 then column3
sort