How to print columns one after the other in bash?

后端 未结 7 1359
感情败类
感情败类 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:16

    Since the order is of no importance:

    $ awk 'BEGIN {RS="[ \t\n]+"} 1' file
    AAA
    111
    BBB
    222
    CCC
    333
    

提交回复
热议问题