⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 paste.1

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1
字号:
.\" SCCSID: @(#)paste.1	2.3	7/15/87.TH paste 1.SH Namepaste \- merge file data.SH Syntax\fBpaste \fIfile1 file2...\fR.br\fBpaste \-d\fI\|list file1 file2...\fR.br\fBpaste \-s [\-d\fI\|list\|\fR] \fIfile1 file2...\fR.SH Description.NXR "paste command".NXR "file" "merging horizontally"In the first two forms,.PN pasteconcatenates corresponding lines of the given inputfiles.IR file1 ,.IR file2 ,etc.It treats each file as a column or columnsof a table and pastes them together horizontally(parallel merging)..PPIn the last form, the.PN pastecommand combines subsequent lines of the inputfile (serial merging)..PPIn all cases, lines are glued together with the.I tab\^character,or with characters from an optionally specified.IR list .Output is to the standard output, so it can be used asthe start of a pipe,or as a filter,if \fB\-\fP is used in place of a file name..PP.SH Options.NXR "paste command" "options list".IP \fB\-\fR 8Used in place of any file name,to read a line from the standard input.(There is no prompting)..IP \fB\-\|d\fIlist\fR Replaces characters of all but last file with nontabs characters (defaulttab).One or more characters immediately following.B \-dreplace the default.I tab\^as the line concatenation character.The list is used circularly, i. e. when exhausted, it is reused.In parallel merging (i. e. no.B \-soption),the lines from the last file are always terminated with a new-line character,not from the.IR list .The list may contain the special escape sequences:.B \en(new-line),.B \et(tab),.B \e\e(backslash), and.B \e0(empty string, not a null character).Quoting may be necessary, if characters have special meaning to the shell(for example, to get one backslash, use.I \-d\|"\e\e\e\e\^")..brWithout this option,the new-line characters of each but the last file(or last line in case of the.B \-soption)are replacedby a.I tab\^character.This option allows replacing the.I tab\^character by one or more alternate characters (see below)..IP \fB\-s\fR Merges subsequent lines rather than one from each input file.Use.I tab\^for concatenation, unless a.I list\^is specifiedwith.B \-doption.Regardless of the.IR list ,the very last character of the file is forced to be a new-line..SH Examples.NXR "paste command" "examples".EXls \|\(bv\| paste \|\-d" " \|\-.EElist directory in one column.EXls \|\(bv\| paste \|\- \|\- \|\- \|\-.EElist directory in four columns.EXpaste \|\-s \|\-d"\e\|t\e\|n" \|file.EEcombine pairs of lines into lines.SH Diagnostics.NXR "paste command" "diagnostics".TP 10m.I "line too long\^"Output lines are restricted to 511 characters..TP.I "too many files\^"Except for.B \-soption, no more than 12 input files may be specified..SH See Alsocut(1), grep(1), pr(1)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -