.\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" the Institute of Electrical and Electronics Engineers, Inc. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#) tr. 1 8.1 (Berkeley) 6/6/93 .\" %FreeBSD: src/usr.bin/tr/tr. 1, v 1.5. 2.7 2002/07/29 12:59:33 tjr Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man1/tr. 1, v 1.13 2002/08/11 19:49:09 horikawa Exp $ .\" .Dd October 11, 1997 .Dt TR 1 .Os .Sh ¸íĪ .Nm tr .Nd ij¸¯ÅÍÀÇ Ä¡È¯ .Sh ¼½Ä .Nm .Op Fl csu .Ar string1 string2 .br .Nm .Op Fl cu .Fl d .Ar string1 .br .Nm .Op Fl cu .Fl s .Ar string1 .br .Nm .Op Fl cu .Fl ds .Ar string1 string2 .Sh ÇØ¼³ .Nm À¯Æ¿¸®Æ¼´Â, ¼±ÅÃµÈ Ä³¸¯Å͸¦ ¿Å°Ü³õ¾Æ ¶Ç´Â »èÁ¦ÇÏ¸é¼ Ç¥ÁØ ÀÔ·ÂÀ» Ç¥ÁØ Ãâ·Â¿¡ Ä«ÇÇÇÕ´Ï´Ù. .Pp ÀÌÇÏÀÇ ¿É¼ÇÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù: .Bl -tag -width Ds .It Fl c .Ar string1 ¿¡ Æ÷ÇԵǴ ij¸¯ÅÍÀÇ ¿©ÁýÇÕÀ» ³ªÅ¸³À´Ï´Ù. Áï, ``-c ab''´Â, ``a''¿Í ``b''¸¦ Á¦¿ÜÇÏ´Â ¸ðµç ij¸¯Å͸¦ Æ÷ÇÔÇÕ´Ï´Ù. .It Fl d .Fl d ¿É¼ÇÀº, ÀÔ·ÂÀ¸·ÎºÎÅÍ ÁöÁ¤ÇÑ Ä³¸¯Å͸¦ »èÁ¦ÇÕ´Ï´Ù. .It Fl s .Fl s ¿É¼ÇÀº, ¸¶Áö¸· Àμö ( .Ar string1 Àΰ¡ .Ar string2 ÀÇ ¾î´À ÂÊÀÎÁö)¿¡ Æ÷ÇԵǾî ÀÖ´Â µ¿ÀÏÇÑ Ä³¸¯ÅͰ¡, ÀԷ¾ȿ¡ ¿¬¼ÓÇØ ³ªÅ¸³¯ ¶§, ±×°ÍÀ» 1 °³ÀÇ Ä³¸¯ÅÍ¿¡ ¾ÐÃàÇÕ´Ï´Ù. ÀÌ ¾ÐÃàÀº, ¸ðµç »èÁ¦³ª º¯È¯ÀÌ ³¡³µ´Ù ÈÄ¿¡ ÇàÇØÁý´Ï´Ù. .It Fl u .Fl u ¿É¼ÇÀº Ãâ·ÂÀÌ ¹öÆÛ¸µ µÇÁö ¾Ê´Â °ÍÀ» ÇÁ·ÎÅØ¼ÇÇÕ´Ï´Ù. .El .Pp ¼½ÄÀÇ ÃÖÃÊÀÇ Çü½Ä¿¡¼´Â, .Ar string1 ¿¡ Æ÷ÇԵǴ ij¸¯ÅÍ´Â, .Ar string1 ÀÇ 1 ij¸¯ÅÍ´«Àº .Ar string2 ÀÇ 1 ij¸¯ÅÍ´«°ú ġȯ...(¿Í)°ú °°ÀÌ .Ar string2 (À¸)·Î ¿Å°ÜÁý´Ï´Ù. ¸¸¾à .Ar string1 ÇÏÁö¸¸ .Ar string2 º¸´Ù ±ä °æ¿ì´Â, .Ar string2 ÀÇ ¸¶Áö¸· ij¸¯ÅͰ¡, .Ar string1 (¿Í)°ú ´ëÀÀ½Ã۴µ¥ ºÎÁ·ÇÑ ºÐ¸¸Å °è¼ÓµÇ°í ÀÖ´Â °ÍÀ¸·Î °£ÁÖÇØÁý´Ï´Ù. .Pp ¼½ÄÀÇ 2 ¹øÂ°ÀÇ Çü½Ä¿¡¼´Â, .Ar string1 ¿¡ Æ÷ÇԵǴ ij¸¯ÅÍ´Â, ÀÔ·ÂÀ¸·ÎºÎÅÍ »èÁ¦µË´Ï´Ù. .Pp ¼½ÄÀÇ 3 ¹øÂ°ÀÇ Çü½Ä¿¡¼´Â, .Ar string1 ¿¡ Æ÷ÇԵǴ ij¸¯ÅÍ´Â, .Fl s ¿É¼ÇÀÇ ÇØ¼³´ë·Î¿¡ ¾ÐÃàµË´Ï´Ù. .Pp ¼½ÄÀÇ 4 ¹øÂ°ÀÇ Çü½Ä¿¡¼´Â, .Ar string1 ¿¡ Æ÷ÇԵǴ ij¸¯ÅÍ´Â ÀÔ·ÂÀ¸·ÎºÎÅÍ »èÁ¦µÇ¾î .Ar string2 ¿¡ Æ÷ÇԵǴ ij¸¯ÅÍ´Â .Fl s ¿É¼ÇÀÇ ÇØ¼³´ë·Î¿¡ ¾ÐÃàµË´Ï´Ù. .Pp .Ar string1 , .Ar string2 ÀÇ Ä³¸¯ÅÍÀÇ ÁýÇÕÀ» ÁöÁ¤Çϴµ¥, ÀÌÇÏ¿Í °°Àº ±â¼ú ¹æ¹ýÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù: .Bl -tag -width [:equiv:] .It character ÀÌÇÏ·Î °¡¸®Å² °ÍÀ» Á¦¿ÜÇÏ´Â, ±× ij¸¯ÅÍ ÀÚ½ÅÀ» ³ªÅ¸³½´Ù Åë»óÀÇ Ä³¸¯ÅÍ (ij¸¯ÅÍ)ÀÔ´Ï´Ù. .It \eoctal backslash¿¡ °è¼ÓµÇ¾î, 1~3 ÀÚ¸®¼öÀÇ 8 Áø¼ö°¡ °è¼ÓµÈ °ÍÀº, ±× °ªÀ» encode ÇÑ Ä³¸¯Å͸¦ Ç¥ÇöÇÕ´Ï´Ù. ÀÌ 8 Áø¼öÀÇ ¹× °è¼ÓµÇ¾î ¼ýÀÚ¸¦ ij¸¯Åͷμ ÁöÁ¤ÇÏ°í ½ÍÀº °æ¿ì¿¡´Â, 8 Áø¼öÀÇ ÁÙÀÌ 3 ÀÚ¸®¼ö¿Í µÇµµ·Ï(µíÀÌ), 8 Áø¼öÀÇ »óÀ§ÀÚ¸®¼ö (¿ÞÂÊ)¿¡ 0 À» ¹¯¾î ÁÖ¼¼¿ä. .It \echaracter backslash¿¡ °è¼ÓµÇ´Â, ƯÁ¤ÀÇ Æ¯¼öÇÑ Ä³¸¯ÅÍ´Â, Ư¼öÇÑ °ª¿¡ ´ëÀÀÇϰí ÀÖ½À´Ï´Ù. .Pp .Bl -column "\ea" .It "\ea <º§ ij¸¯ÅÍ> .It "\eb <¹é ½ºÆäÀ̽º> .It "\ef