Linux and Unix paste command
Merge corresponding or subsequent lines of files.
paste [-s] [-d list] file
|-s||Concatenate all of the lines of each separate input file in command line order. The NEWLINE character of every line except the last line in each input file will be replaced with the TAB character, unless otherwise specified by the -d option.|
|-d list||Unless a backslash character (\) appears in list, each character in list is an element specifying a delimiter character. If a backslash character appears in list, the backslash character and one or more characters following it are an element specifying a delimiter character as described below. These elements specify one or more delimiters to use, instead of the default TAB character, to replace the NEWLINE character of the input lines. The elements in list are used circularly; that is, when the list is exhausted the first element from the list is reused. |
When the -s option is specified:
When the option is not specified:
If a backslash character appears in list, it and the character following it will be used to represent the following delimiter characters:
If any other characters follow the backslash, the results are unspecified.
|file||A path name of an input file. If - is specified for one or more of the file s, the standard input will be used; the standard input will be read one line at a time, circularly, for each instance of -. Implementations support pasting of at least 12 file operands.|
ls | paste - - - -
Take the input from ls and paste that input into four columns.