O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

paste

Synopsis

                  paste [options] files
               

Merge corresponding lines of one or more files into tab-separated vertical columns. See also cut, join, and pr.

Options

-

Replace a filename with the standard input.

-d char, --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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required