PASTE.1
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:1k
- .TH PASTE 1
- .SH NAME
- paste - paste multiple files together
- .SH SYNOPSIS
- fBpastefR [fB-sfR]fR [fB-dfI listfR] fIfile...fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-d" "Set delimiter used to separate columns to fIlistfR.
- .FL "-s" "Print files sequentially, file fIkfR on line fIkfR.
- .SH EXAMPLES
- .EX "paste file1 file2" "Print fIfile1fR in col 1, fIfile2fR in col 2"
- .EX "paste -s f1 f2" "Print fIf1fR on line 1 and fIf2fR on line 2"
- .EX "paste -d : file1 file2" "Print the lines separated by a colon"
- .SH DESCRIPTION
- .PP
- fIPastefR 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 -sfR. 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 fIkfR files each has one word per line.
- Then the fIpastefR output will have fIkfR columns,
- with the contents of file fIjfR in column fIjfR.
- If the fB-sfR flag is given, then the first
- file is on line 1, the second file on line 2, etc.
- In effect, fB-sfR turns the output sideways.
- .PP
- If a list of delimiters is given, they are used in turn. The C escape
- sequences \n, \t, \\, and \0 are used for linefeed, tab, backslash, and
- the null string, respectively.