unix join separator char

前端 未结 6 928
旧时难觅i
旧时难觅i 2020-12-14 01:30

Sorry for the maybe trivial question.

I fought a bit with the unix join command, trying to get tabs instead of whitespaces as the default separators. -t is

6条回答
  •  爱一瞬间的悲伤
    2020-12-14 01:55

    man join says, that the options have to come in front of the filenames. Have you tried

    join -t "\t" file1 file2
    

    ?

    Edit: Reflecting Tonio's answer, the correct line would read

    join -t $'\t' file1 file2
    

提交回复
热议问题