Unix and Linux Discussions Tagged with paste |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
7,172 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
5,116 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
7,632 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
8,099 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
5,240 |
UNIX for Beginners Questions & Answers |
|
|
|
24 |
13,340 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
4,909 |
Shell Programming and Scripting |
|
|
|
2 |
1,564 |
UNIX for Beginners Questions & Answers |
|
|
|
26 |
120,153 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,821 |
Shell Programming and Scripting |
|
|
|
15 |
7,707 |
Shell Programming and Scripting |
|
|
|
2 |
5,191 |
Shell Programming and Scripting |
|
|
|
4 |
2,067 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
3,640 |
Shell Programming and Scripting |
|
|
|
8 |
4,846 |
Shell Programming and Scripting |
|
|
|
4 |
2,101 |
Shell Programming and Scripting |
|
|
|
3 |
2,567 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,092 |
Shell Programming and Scripting |
|
|
|
5 |
2,622 |
Shell Programming and Scripting |
|
|
|
11 |
7,138 |
Shell Programming and Scripting |
|
|
|
4 |
1,954 |
Shell Programming and Scripting |
|
|
|
4 |
7,147 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
6,233 |
Shell Programming and Scripting |
|
|
|
3 |
1,601 |
Shell Programming and Scripting |
|
|
|
3 |
4,703 |
Shell Programming and Scripting |
|
|
|
4 |
6,265 |
Shell Programming and Scripting |
|
|
|
1 |
3,062 |
Shell Programming and Scripting |
|
|
|
2 |
5,495 |
Shell Programming and Scripting |
|
|
|
4 |
3,757 |
Shell Programming and Scripting |
|
|
|
2 |
2,336 |
Shell Programming and Scripting |
|
|
|
1 |
303,190 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,836 |
Shell Programming and Scripting |
|
|
|
3 |
8,433 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,726 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,077 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
17,041 |
Shell Programming and Scripting |
|
|
|
4 |
6,045 |
Shell Programming and Scripting |
|
|
|
3 |
2,129 |
Shell Programming and Scripting |
|
|
|
3 |
2,030 |
UNIX for Advanced & Expert Users |
|
|
|
19 |
10,657 |
Shell Programming and Scripting |
PASTE(1) General Commands Manual PASTE(1)
NAME
paste - paste multiple files together
SYNOPSIS
paste [-s] [-d list] file...
OPTIONS
-d Set delimiter used to separate columns to list.
-s Print files sequentially, file k on line k.
EXAMPLES
paste file1 file2 # Print file1 in col 1, file2 in col 2
paste -s f1 f2 # Print f1 on line 1 and f2 on line 2
paste -d : file1 file2
# Print the lines separated by a colon
DESCRIPTION
Paste concatenates corresponding lines of the given input files and writes them to standard output. The lines of the different files are
separated by the delimiters given with the option -s. If no list is given, a tab is substituted for every linefeed, except the last one.
If end-of-file is hit on an input file, subsequent lines are empty. Suppose a set of k files each has one word per line. Then the paste
output will have k columns, with the contents of file j in column j. If the -s flag is given, then the first file is on line 1, the second
file on line 2, etc. In effect, -s turns the output sideways.
If a list of delimiters is given, they are used in turn. The C escape sequences
, , \, and are used for linefeed, tab, backslash,
and the null string, respectively.
PASTE(1)