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

📄 tr.1

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 1
字号:
.TH TR 1 .SH NAMEtr \- translate characters.SH SYNOPSIS.B tr[.B \-cds] [ string1 [ string2 ] ].SH DESCRIPTION.I Trcopies the standard input to the standard output with substitution or deletion of selected characters.Input characters found in .I string1are mapped into the corresponding characters of.IR string2 .When .I string2is short it is padded to the length of .I string1by duplicating its last character.Any combination of the options.B \-cdsmay be used:.B \-ccomplements the set of characters in.I string1with respect to the universe of characterswhose ASCII codes are 01 through 0377 octal;.B \-ddeletes all input characters in.I string1;.B \-ssqueezes all strings of repeated output characters that arein .I string2to single characters..PPIn either string the notation.IB a \- bmeans a range of characters from.I ato.I bin increasing ASCII order.The character`\e' followed by 1, 2 or 3 octal digits stands for thecharacter whose ASCII code is given by those digits.A `\e' followed by any other character standsfor that character..PPThe following example creates a list of allthe words in `file1' one per line in `file2',where a word is taken to be a maximal string of alphabetics.The second string is quotedto protect `\e' from the Shell.012 is the ASCII code for newline..IPtr \-cs A\-Za\-z \'\e012\' <file1 >file2.SH "SEE ALSO"ed(1), ascii(7).SH BUGSWon't handle ASCII NUL in.I string1or.I string2;always deletes NUL from input.

⌨️ 快捷键说明

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