对不起,这可能是一个微不足道的问题.
我使用unix join命令进行了一些操作,试图将标签而不是空格作为默认分隔符.-t是参数,但这些不起作用(ubuntu 9.10 64 bit 2.6.31-14,GNU coreutils 7.4版)
join file1 file2 -t"\t"
join file1 file2 -t="\t"
join file1 file2 -t="\\t"
join file1 file2 -t $"\t"
Run Code Online (Sandbox Code Playgroud)
等等.当然,我总是可以使用一些不太优雅的解决方案
join file1 file2 > output
sed "s/ /\t/g" output
Run Code Online (Sandbox Code Playgroud)
但我想看起来很聪明:-)而且,如果有一个-t参数,它必须有效.