SYNOPSIS

       paste file1 file2 . . .
       paste -dlist file1 file2 . . .
       paste -s [-dlist] file1 file2 . . .


DESCRIPTION

       The paste command, as shown in the first two synopsis forms, will  com-
       bine  each  set of corresponding lines of the given files to one single
       line, separated by delimiters, a tabulator (\t) character  by  default.
       If  a file contains fewer lines than others, nothing is printed between
       the delimiters.

       In the third synopsis form, paste serially combines all lines  of  each
       file  to  one  single line, separated by delimiters.  One line per file
       results.

       If a file is `-', standard input is read.

       The paste command accepts the following options:

       -d list
              Sets the delimiter characters.  Each single character in list is
              used  in  the  given  order  to separate fields (former lines of
              input).  If list is exhausted, or a  new  set  of  corresponding
              lines begins, or (with the -s option) a new file is printed, the
              sequence is repeated starting at the first character.  The  fol-
              lowing character sequences in list are special:


                   lfB  l.  \n   Newline character.  \t   Tabulator character.
                   \\   Backslash character.  \0   No delimiter at all.


       -s     Selects the third synopsis form (serial paste).


ENVIRONMENT VARIABLES

       LANG, LC_ALL
              See locale(7).

       LC_CTYPE
              Determines the mapping of bytes to characters for  the  argument
              of the -d option.


SEE ALSO

       cut(1), locale(7)



Heirloom Toolchest                  4/17/03                           PASTE(1)

Man(1) output converted with man2html