?? tr.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 + -