Paste command in unix/Lnux

paste command in unix is used to merge the lines from files. The paste command displays the corresponding lines of multiple files side-by-side. It is one of most useful utility in unix/linux operating system. paste writes lines consisting of the sequentially corresponding lines from each file, separated by tabs, to the standard output.
The syntax for the paste command is

The options are
  • -d:Specify a list of delimiters
  • -s:Paste one file at a time instead of in parallel
  • --version:Version information
  • --help:Help about the paste command
Examples for paste command 
Consider two files file1, file2

  • Merge above two files 

  • Join lines in a file1 

  • Merge files using delimiter  
Powered by Blogger.