PASTE
PROLOG
NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OPERANDS
STDIN
INPUT FILES
ENVIRONMENT VARIABLES
ASYNCHRONOUS EVENTS
STDOUT
STDERR
OUTPUT FILES
EXTENDED DESCRIPTION
EXIT STATUS
CONSEQUENCES OF ERRORS
APPLICATION USAGE
EXAMPLES
RATIONALE
FUTURE DIRECTIONS
SEE ALSO
COPYRIGHT
PROLOG
This manual page is part of the POSIX Programmer’s Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME
paste — merge corresponding or subsequent lines of files
SYNOPSIS
paste [-s] [-d list] file…
DESCRIPTION
The paste utility shall concatenate the corresponding lines of the given input files, and write the resulting lines to standard output.
The default operation of paste shall concatenate the corresponding lines of the input files. The
If an end-of-file condition is detected on one or more input files, but not all input files, paste shall behave as though empty lines were read from the files on which end-of-file was detected, unless the −s option is specified.
OPTIONS
The paste utility shall conform to the Base Definitions volume of POSIX.1-2017, Section 12.2, Utility Syntax Guidelines.
The following options shall be supported:
−d list |
Unless a |
*
The last |
|||
* |
The delimiter shall be reset to the first element of list after each file operand is processed. |
When the −s option is not specified:
* |
The |
||
* |
The delimiter shall be reset to the first element of list each time a line is processed from each file. |
If a
n |
|
||
t |
|
||
\ |
|
||