I have 1 csv file space delimited,
Jan_high 32 123
Febr_low 19 139
March_high 12 63
Jan_low 36 18
Febr_high 87 99
March_low 83 77
how do I sort it based on _high
, then _low
string 1st column? I cant use sort -k1.5
since the string high or low doesn't start at fixed character location. Does anyone have idea ?
sort -t_ -k2
should work. – Jeremy Dover Sep 8 '17 at 0:44