May 2000
Beginner
761 pages
18h 20m
English
paste filename1 filename2… paste –d list filename1 filename2… paste –s [ –d list ] filename1 filename2…
paste concatenates corresponding lines of the given input files filename1, filename2, etc. It treats each file as a column or columns of a table and pastes them together horizontally (see "cut" on page683).
1 ls | paste - - - 2 paste -s -d"\t\n" testfile1 testfile2 3 paste file1 file2 |
Explanation
Files are listed in three columns and glued together with a TAB.
Combines a pair of lines into a single line using a TAB and new line as the delimiter, i.e., the first pair of lines are glued with a TAB; the next pair are glued by a newline, the next pair ...
Read now
Unlock full access