unix join separator char

前端 未结 6 924
旧时难觅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 02:03

    An alternate trick that seems to work is to enclose the -t option in quotes with the literal tab character. This looks like:

    join '-t    ' ...
    

    with a variable space between the t and the closing quote (since it's a tab).

    Typed, it's:

    join'-t' ...
    

提交回复
热议问题