728x90 AdSpace

Wednesday, 20 September 2017

paste Linux Command

paste

paste [options] files
Merge corresponding lines of one or more files into tab-separated vertical columns. Use - to read from standard input, instead of specifying a file. See also cut, join, and pr.

Options

-dchar, --delimiters=char
Separate columns with char instead of a tab. You can separate columns with different characters by supplying more than one char.

--help
Print a help message and then exit.

-s, --serial
Merge lines from one file at a time.

--version
Print version information and then exit.

Examples

Create a three-column file from files x, y, and z:

paste x y z > file

List users in two columns:

who | paste - -

Merge each pair of lines into one line:

paste -s -d"\t\n" list
Annamalai Thangaraj

Annamalai is working as Technical Lead in Leading Telecom company with 5+ years experience in Identity and Access Management , Telecom and Networks, BigData, Java, Spring, Struts, Hibernate, AngularJS, and Enterprise Web Application Development.

Website: Java Tutorials Corner

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: paste Linux Command Rating: 5 Reviewed By: Annamalai Thangaraj