词条 | Tr (Unix) |
释义 |
| name = tr | logo = | screenshot = Tr Unix.png | screenshot size = | caption = The {{code|tr}} command | author = | developer = AT&T Bell Laboratories | released = {{Start date and age|1973|11}} | latest release version = | latest release date = | operating system = Unix and Unix-like, OS-9 | genre = Command | license = coreutils: GNU GPL v3 | website = }} tr is a command in Unix and Unix-like operating systems. It is an abbreviation of translate or transliterate, indicating its operation of replacing or removing specific characters in its input data set. OverviewThe utility reads a byte stream from its standard input and writes the result to the standard output. As arguments, it takes two sets of characters (generally of the same length), and replaces occurrences of the characters in the first set with the corresponding elements from the second set. For example, maps all characters a to j, b to k, c to m, and d to n. The character set may be abbreviated by using character ranges. The previous example could be written: In POSIX-compliant versions of The replaces sequences of one or more newline characters with a single newline. The The therefore removes all non-alphanumeric characters. ImplementationsThe version of The command is also available in the OS-9 shell.[2] Most versions of See also
References1. ^https://linux.die.net/man/1/tr 2. ^{{cite book|author=Paul S. Dayan|year=1992|title=The OS-9 Guru - 1 : The Facts|publisher=Galactic Industrial Limited|isbn=0-9519228-0-7}} 3. ^{{cite web|title=tr (String) - APIdock|url=http://apidock.com/ruby/String/tr|publisher=APIdock|accessdate=12 August 2015}} 4. ^{{cite web|title=tr - perldoc.perl.org|url=http://perldoc.perl.org/functions/tr.html|publisher=perldoc.perl.org|accessdate=12 August 2015}} 5. ^{{cite web|title=Tcl Built-In Commands - string manual page|url=https://www.tcl.tk/man/tcl8.4/TclCmd/string.htm#M33|accessdate=12 August 2015}} External links
2 : Unix text processing utilities|Unix SUS2008 utilities |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。