3947840b05
Interpretation of a chunk in cut.1 was helped by: Yoshihiko Sarumaru <mistral@imasy.or.jp>, hrs
179 lines
5.2 KiB
Groff
179 lines
5.2 KiB
Groff
.\" Copyright (c) 1980, 1990, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" 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.
|
|
.\"
|
|
.\" @(#)fmt.1 8.1 (Berkeley) 6/6/93
|
|
.\" %FreeBSD: src/usr.bin/fmt/fmt.1,v 1.14 2004/08/02 11:12:13 tjr Exp %
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd August 2, 2004
|
|
.Dt FMT 1
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm fmt
|
|
.Nd ´Êñ¤Ê¥Æ¥¥¹¥È¥Õ¥©¡¼¥Þ¥Ã¥¿
|
|
.Sh ½ñ¼°
|
|
.Nm fmt
|
|
.Op Fl cmnps
|
|
.Op Fl d Ar chars
|
|
.Op Fl l Ar num
|
|
.Op Fl t Ar num
|
|
.Op Ar goal Oo Ar maximum Oc | Fl Ns Ar width | Fl w Ar width
|
|
.Op Ar
|
|
.Sh ²òÀâ
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï´Êñ¤Ê¥Æ¥¥¹¥È¥Õ¥©¡¼¥Þ¥Ã¥È¥×¥í¥°¥é¥à¤Ç¤¹¡£
|
|
°ú¿ô¤È¤·¤Æ name ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ð¤½¤Î̾Á°¤Î¥Õ¥¡¥¤¥ë¤ò¡¢
|
|
»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ðɸ½àÆþÎϤòÆɤ߹þ¤ß¡¢
|
|
ÆþÎϤ·¤¿¹Ô¤ò¼¡¡¹¤ËÏ¢·ë¤·¤Æ¤¤¤¡¢
|
|
.Ar maximum
|
|
¤òĶ¤¨¤Ê¤¤ÈϰϤǡ¢
|
|
.Ar goal
|
|
¤Ç»ØÄꤷ¤¿Ä¹¤µ¤Ë¶á¤¤Ê¸»ú¿ô¤ËÀ°·Á¤·¤Þ¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢
|
|
.Ar goal
|
|
¤ÎŤµ¤Ï 65¡¢
|
|
.Ar maximum
|
|
¤ÎŤµ¤Ï
|
|
.Ar goal
|
|
¤Ë 10 ¤ò²Ã¤¨¤¿¤â¤Î¤Ç¤¹¡£
|
|
¤Þ¤¿¤Ï¡¢Á°¤Ë¥Ï¥¤¥Õ¥ó¤òÉÕ¤±¤ë¤«
|
|
.Fl w
|
|
¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë¤è¤ê¡¢Ã±°ì¤Î
|
|
.Ar width
|
|
¥Ñ¥é¥á¡¼¥¿¤ò»ØÄê²Äǽ¤Ç¤¹¡£
|
|
Î㤨¤Ð¡¢
|
|
.Dq Li fmt -w 72 ,
|
|
.Dq Li fmt -72 ,
|
|
.Dq Li fmt 72 72
|
|
¤ÏƱ¤¸½ÐÎϤȤʤê¤Þ¤¹¡£
|
|
ÆþÎϹԤÎÀèƬ¤Ë¶õÇò
|
|
¤¬¤¢¤ë¾ì¹ç¤Ï¡¢À°·Á¤·¤¿½ÐÎϤÎÀèƬ¤Ë¤â¶õÇò¤¬ÃÖ¤«¤ìÃʤŤ±¤µ¤ì¤Þ¤¹¡£
|
|
¤Þ¤¿¡¢¶õÇò¹Ô¤ä¡¢Ê¸»ú¤Èʸ»ú¤Î´Ö¤Î¶õÇò¤Î¿ô¤â¡¢½ÐÎϤ˼õ¤±·Ñ¤¬¤ì¤Þ¤¹¡£
|
|
¹Ô¤¬·ë¹ç¤µ¤ì¤¿¤êʬ³ä¤µ¤ì¤ë¤Î¤Ï¡¢¶õÇò¤Ë¤ª¤¤¤Æ¤Î¤ß¤Ç¤¹¡£
|
|
¤Ä¤Þ¤ê¡¢Ê£¿ô¤Îñ¸ì¤¬·ë¹ç¤µ¤ì¤¿¤ê¥Ï¥¤¥Õ¥Í¡¼¥·¥ç¥ó¤µ¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|
|
.Pp
|
|
¥ª¥×¥·¥ç¥ó¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹:
|
|
.Bl -tag -width indent
|
|
.It Fl c
|
|
¥Æ¥¥¹¥È¤òÃæ±û´ó¤»¤µ¤»¤Þ¤¹¡£
|
|
¤³¤Î¾ì¹ç¡¢Â¾¤Î¤Û¤È¤ó¤É¤Î¥ª¥×¥·¥ç¥ó¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
|
|
¹Ô¤Îʬ³ä¤ä·ë¹ç¤Ï¹Ô¤ï¤ì¤Þ¤»¤ó¡£
|
|
.It Fl m
|
|
ÆþÎϤ˴ޤޤì¤ë¥á¡¼¥ë¥Ø¥Ã¥À¹Ô¤òÌÜΩ¤Ä¤è¤¦¤ËÀ°·Á¤·¤è¤¦¤È¤·¤Þ¤¹¡£
|
|
.It Fl n
|
|
.Ql \&.
|
|
(¥É¥Ã¥È) ʸ»ú¤Ç³«»Ï¤¹¤ë¹Ô¤òÀ°·Á¤·¤Þ¤¹¡£
|
|
Ä̾ï¤Ç¤Ï¡¢
|
|
.Nm
|
|
¤Ï¡¢
|
|
.Xr nroff 1
|
|
¤È¤Î¸ß´¹À¤Î¤¿¤á¤Ë¡¢¤³¤Î¤è¤¦¤Ê¹Ô¤òµÍ¤á¤Þ¤¹¡£
|
|
.It Fl p
|
|
¥¤¥ó¥Ç¥ó¥È¤µ¤ì¤¿ÃÊÍî¤òµö¤·¤Þ¤¹¡£
|
|
.Fl p
|
|
¥Õ¥é¥°Ìµ¤·¤Ç¤Ï¡¢¹ÔƬ¤Î¶õÇò¿ô¤¬ÊѤï¤ë¤È¡¢¿·µ¬ÃÊÍ³«»Ï¤·¤Þ¤¹¡£
|
|
.It Fl s
|
|
¹ÔÃæ¤Î¶õÇò¤òÄÙ¤·¡¢Ê£¿ô¤Î¶õÇòʸ»ú¤¬Ã±°ì¤Î¶õÇò¤È¤Ê¤ë¤è¤¦¤Ë¤·¤Þ¤¹
|
|
(ʸËö¤Ç¤Ï¡¢Æó¤Ä¤Î¶õÇò¤È¤Ê¤ê¤Þ¤¹)¡£
|
|
.It Fl d Ar chars
|
|
.Ar chars
|
|
¤òʸËöʸ»ú¤È¤·¤Æǧ¼±¤·¤Þ¤¹ (¾¤Îʸ»ú¤Ï¤½¤¦¤Ç¤Ê¤¤¤Èǧ¼±¤·¤Þ¤¹)¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Ê¸Ëöʸ»ú¤Ï½ª»ßÉä
|
|
.Pq Ql \&.
|
|
µ¿ÌäÉä
|
|
.Pq Ql \&?
|
|
´¶Ã²Éä
|
|
.Pq Ql \&!
|
|
¤Ç¤¹¡£
|
|
ʸ»ú¤Ë¤è¤Ã¤Æ¤Ï¡¢¥·¥§¥ë¤«¤é¼é¤ë¤¿¤á¤Ë¡¢
|
|
¥¨¥¹¥±¡¼¥×¤¬É¬ÍפǤ¢¤ë¤³¤È¤ò³Ð¤¨¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
|
|
.It Fl l Ar number
|
|
³Æ½ÐÎϹԤÎÀèƬ¤ÎÊ£¿ô¤Î¶õÇò¤ò¥¿¥Ö¤ÇÃÖ¤´¹¤¨¤Þ¤¹¡£
|
|
³Æ
|
|
.Ar number
|
|
¸Ä¤Î¶õÇò¤¬¡¢Ã±°ì¤Î¥¿¥Ö¤ÇÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Ï 8 ¤Ç¤¹¡£
|
|
.Ar number
|
|
¤¬ 0 ¤Ç¤¢¤ë¾ì¹ç¡¢¶õÇò¤Ï°Ý»ý¤µ¤ì¤Þ¤¹¡£
|
|
.It Fl t Ar number
|
|
ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î¥¿¥Ö¤¬¡¢
|
|
.Ar number
|
|
¸Ä¤Î¶õÇò¤ò¥¿¥Ö¥¹¥È¥Ã¥×¤Ë²¾Äꤷ¤Æ¤¤¤ë¤È²¾Äꤷ¤Þ¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Ï 8 ¤Ç¤¹¡£
|
|
.El
|
|
.Pp
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢¥á¡¼¥ë¥á¥Ã¥»¡¼¥¸¤òÁ÷¿®¤¹¤ëÁ°¤ËÀ°·Á¤¹¤ë¤¿¤á¤ËÌòΩ¤Á¤Þ¤¹¤¬¡¢
|
|
¾¤Î´Êñ¤Ê¥¿¥¹¥¯¤Î¤¿¤á¤Ë¤â»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤¿¤È¤¨¤Ð¡¢
|
|
.Xr ex 1
|
|
¤Î¥Ó¥¸¥å¥¢¥ë¥â¡¼¥É(¤¹¤Ê¤ï¤Á
|
|
.Xr vi 1 )
|
|
¤Î¤Ê¤«¤Ç¡¢¼¡¤Î¥³¥Þ¥ó¥É¤òÆþÎϤ¹¤ë¤È¡¢
|
|
¥Ñ¥é¥°¥é¥Õ¤òÀ°·Á¤·¤Æ¤¯¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
.Dl \&!}fmt
|
|
.Sh ´Ä¶ÊÑ¿ô
|
|
.Xr environ 7
|
|
¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¡¢
|
|
.Ev LANG , LC_ALL , LC_CTYPE
|
|
´Ä¶ÊÑ¿ô¤Ï
|
|
.Nm
|
|
¤Î¼Â¹Ô¤Ë±Æ¶Á¤òµÚ¤Ü¤·¤Þ¤¹¡£
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr fold 1 ,
|
|
.Xr mail 1 ,
|
|
.Xr nroff 1
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥³¥Þ¥ó¥É¤Ï
|
|
.Bx 3
|
|
¤«¤éÅо줷¤Þ¤·¤¿¡£
|
|
.Pp
|
|
¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Ï´°Á´¤Ë½ñ¤Ä¾¤·¤¿¤â¤Î¤Ç¡¢
|
|
.Fx 4.4
|
|
¤ËÅо줷¤Þ¤·¤¿¡£
|
|
.Sh ºî¼Ô
|
|
.An Kurt Shoens
|
|
.An Liz Allen
|
|
.Pf ( Ar goal
|
|
¤ÎŤµ¤Î³µÇ°¤òƳÆþ)
|
|
.An Gareth McCaughan
|
|
.Sh ¥Ð¥°
|
|
¤³¤Î¥×¥í¥°¥é¥à¤Ï¡¢´Êñ¤Ç¹â®¤Ç¤¢¤ë¤è¤¦¤Ë¥Ç¥¶¥¤¥ó¤µ¤ì¤Þ¤·¤¿¡£¤â¤Ã¤ÈÊ£»¨
|
|
¤ÊÀ°·Á¤Ë¤Ï¡¢É¸½àŪ¤Ê¥Æ¥¥¹¥È¥×¥í¥»¥Ã¥µ¤ò»È¤¦¤Î¤¬Å¬¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.Pp
|
|
¥¤¥ó¥Ç¥ó¥È¤µ¤ì¤¿ÃÊÍî¤ÎºÇ½é¤Î¹Ô¤¬¤È¤Æ¤âŤ¤¾ì¹ç
|
|
(goal ¤ÎŤµ¤Î 2 Çܤè¤ê¤âŤ¤¾ì¹ç)¡¢
|
|
½ÐÎϤΥ¤¥ó¥Ç¥ó¥È¤¬¸í¤ê¤È¤Ê¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
|
|
.Pp
|
|
¤É¤Î¹Ô¤¬¥á¡¼¥ë¥Ø¥Ã¥À¤Ç¤¢¤ê¤É¤ì¤¬¤½¤¦¤Ç¤Ê¤¤¤«¤ÎȽÃǤò¡¢
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬ÀäÂФ˴ְ㤨¤Ê¤¤¤È¤¤¤¦¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|