浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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

posted on 2013-09-16 08:27  lexus  阅读(657)  评论(0编辑  收藏  举报