My data looks as follows:
1 3 4 2016 2 bam
2 0 0 1998 2 bbm
3 0 0 1900 2 bcm
4 3 0 2000 1 bdm
I would like it to be as follows:
1 0 0 1900 2 bcm
2 0 0 1998 2 bbm
3 3 0 2000 1 bdm
4 3 4 2016 2 bam
I tried sort -n -k4
it doesn't give me what I want, is there any other command I can use?