join.1
来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 1 代码 · 共 105 行
1
105 行
.TH JOIN 1 .SH NAMEjoin \- relational database operator.SH SYNOPSIS.B join[options]file1 file2.SH DESCRIPTION.I 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 \ sReplace empty output fields by string.IR s ..TP.BI \-j n\ mJoin on the.IR m thfield of file.IR n .If.I nis missing, use the.IR m thfield in each file..TP.BI \-o \ listEach output line comprises the fields specifed 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"sort(1), comm(1), awk(1).SH BUGSWith default field separation,the collating sequence is that of.IR sort\ \-b ;with.BR \-t ,the sequence is that of a plain sort..PPThe conventions of.I join, sort, comm, uniq, lookand.IR awk (1)are wildly incongruous.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?