📄 join.1
字号:
.\" @(#)join.1 6.1 (Berkeley) 4/29/85.\".TH JOIN 1 "April 29, 1985".AT 3.SH NAMEjoin \- relational database operator.SH SYNOPSIS.B join.RB [ \-a\fIn ].RB [ \-e.IR s ].RB [ \-o.IR list ].RB [ \-t\fIc ]file1 file2.SH DESCRIPTION.B Joinforms, on the standard output,a joinof the two relations specified by the lines of.I file1and.IR file2 .If.I file1is `\-', the standard input is used..PP.I File1and .I file2must be sorted in increasing ASCII collatingsequence on the fieldson which they are to be joined,normally the first in each line..PPThere is one line in the output for each pair of lines in .I file1 and .I file2that have identical join fields.The output line normally consists of the common field,then the rest of the line from .IR file1 ,then the rest of the line from.IR file2 ..PPFields are normally separated by blank, tab or newline.In this case, multiple separators count as one, andleading separators are discarded..PPThese options are recognized:.TP.BI \-a nIn addition to the normal output,produce a line for each unpairable line in file.IR n ,where.I nis 1 or 2..TP.BI \-e " s"Replace empty output fields by string.IR s ..ig.TP.BI \-j "n m"Join on the.IR m thfield of file.IR n .If.I nis missing, use the.IR m thfield in each file....TP.BI \-o " list"Each output line comprises the fields specified in.IR list ,each element of which has the form.IR n . m ,where.I nis a file number and.I mis a field number..PP.TP.BI \-t cUse character.I cas a separator (tab character).Every appearance of.I cin a line is significant..SH "SEE ALSO".BR sort (1),.BR comm (1),.BR awk (1)..SH BUGSWith default field separation,the collating sequence is that of.BR "sort \-b" ;with.BR \-t ,the sequence is that of a plain sort..PPThe conventions of.BR join ,.BR sort ,.BR comm ,.BR uniq ,.BR lookand.BR awk (1)are wildly incongruous.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -