sort 使用 tab键 作为 分隔符_人生如梦_百度空间

sort 使用 tab键 作为 分隔符_人生如梦_百度空间

sort 使用 tab键 作为 分隔符

For some reason "\t" doesn't work right, sort doesn't want to interpret it:
Code:~$ sort -t \\t -k2 -n example
sort: multi-character tab `\\t'You can enter a tab using

<backslash-code>' syntax
Code:~$ sort -t \t' -k2 -n example
g hi 123 liead
j kl 234 ppoasd
m no 873 apoie
d e f 876 lpoae
a bc 987 asdAlso entering a literal tab by typing Ctrl+v TAB works
Code:~$ sort -t' ' -k2 -n blah
g hi 123 liead
j kl 234 ppoasd
m no 873 apoie
d e f 876 lpoae
a bc 987 asd

你可能感兴趣的:(sort)