How to paste output of multiple commands

5,729

almost there...

paste <(zcat f1.gz) <(zcat f2.gz)
Share:
5,729

Related videos on Youtube

AdminBee
Author by

AdminBee

Updated on September 18, 2022

Comments

  • AdminBee
    AdminBee over 1 year

    I want to merge two unzipped files f1 and f2 in one command, like

    paste (zcat f1.gz) (zcat f2.gz). 
    

    What is the right syntax?

    • Admin
      Admin about 9 years
      It would be helpful if you could post an example of the (uncompressed) input and output you expect; you can edit your question to add this information. As it stands, it's unclear to me how you want to "merge" the two files; is it with the actual command paste, or otherwise?
    • Admin
      Admin about 9 years
      "I want to merge two unzipped files" --> zipped?