How to print columns one after the other in bash?

后端 未结 7 1358
感情败类
感情败类 2021-01-14 19:06

Is there any better methods to print two or more columns into one column, for example

input.file

AAA    111
BBB    222
CCC    333

o

相关标签:
7条回答
  • 2021-01-14 19:35

    Expects tab as delimiter:

    $ cat <(cut -f 1 asd) <(cut -f 2 asd)
    AAA
    BBB
    CCC
    111
    222
    333
    
    0 讨论(0)
提交回复
热议问题