I am using GNU sort (from GnuWin32) on Windows. I renamed it to "sort1.exe". The input text file has spaces and tabs but the fields are delimited by tabs. I tried with:
sort1 -n -k2 -t "\t" file.txt
but it says: "sort1: multi-character tab '\t'
the text looks like
lazy dog<TAB>123
fox<TAB>1
white tail wolf<TAB>11
blue bear<TAB>7
and the output should be like
fox<TAB>1
blue bear<TAB>7
white tail wolf<TAB>11
lazy dog<TAB>123
I tried using the advice in the other thread but it doesn't work in Windows.