Search This Blog

Tuesday, July 17, 2018

Paste - Merge Lines Of Files

Paste :
It is used to write lines consisting of the sequentially corresponding lines from each FILE, separated by TABs, to standard output.

[Syntax]
paste [OPTIONS] [FILES]

[Example]

~cat one.txt
foo
bar

~cat two.txt
1337
31337

~paste one.txt two.txt
foo    1337
bar    31337

~paste -d : two.txt one.txt
1337:foo
31337:bar

[Options]
-d : use delimeter characters instead of TABs.