paste Linux Commands

What is Linux paste Command?


paste COMMAND:

paste command is used to paste the content from one file to another file. It is also used to set column format for each line.


paste [options]


-s Paste one file at a time instead of in parallel.
-d Reuse characters from LIST instead of TABs .


  1. paste test.txt>test1.txt

    Paste the content from 'test.txt' file to 'test1.txt' file.
  2. ls | paste - - - -

    List all files and directories in four columns for each line.

Ask Questions

Ask Question