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

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

sort 使用 tab键 作为 分隔符

For some reason " " 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 ' -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

原文地址:https://www.cnblogs.com/lexus/p/3323576.html