3947840b05
Interpretation of a chunk in cut.1 was helped by: Yoshihiko Sarumaru <mistral@imasy.or.jp>, hrs
148 lines
4.3 KiB
Groff
148 lines
4.3 KiB
Groff
.\" Copyright (c) 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.
|
||
.\"
|
||
.\" @(#)lam.1 8.1 (Berkeley) 6/6/93
|
||
.\" %FreeBSD: src/usr.bin/lam/lam.1,v 1.13 2004/08/12 11:34:34 tjr Exp %
|
||
.\" $FreeBSD$
|
||
.\"
|
||
.Dd August 12, 2004
|
||
.Dt LAM 1
|
||
.Os
|
||
.Sh ̾¾Î
|
||
.Nm lam
|
||
.Nd ¥Õ¥¡¥¤¥ë¤òʤ٤Ʒë¹ç¤¹¤ë
|
||
.Sh ½ñ¼°
|
||
.Nm
|
||
.Op Fl f Ar min . Ns Ar max
|
||
.Op Fl s Ar sepstring
|
||
.Op Fl t Ar c
|
||
.Ar
|
||
.Nm
|
||
.Op Fl p Ar min . Ns Ar max
|
||
.Op Fl s Ar sepstring
|
||
.Op Fl t Ar c
|
||
.Ar
|
||
.Sh ²òÀâ
|
||
.Nm
|
||
¤Ï»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤òʤ٤ƥ³¥Ô¡¼¤·¡¢É¸½à½ÐÎϤ˽ÐÎϤ·¤Þ¤¹¡£
|
||
³ÆÆþÎÏ¥Õ¥¡¥¤¥ë
|
||
.Ar file
|
||
¤Î
|
||
.Em n
|
||
¹ÔÌܤϡ¢½ÐÎϤÎ
|
||
.Em n
|
||
¹ÔÌܤò¹½À®¤¹¤ëÍ×ÁǤȸ«¤Ê¤µ¤ì¡¢·ë¹ç¤µ¤ì¤Þ¤¹¡£
|
||
`\fB\-\fP' ¤È¤¤¤¦¥Õ¥¡¥¤¥ë̾¤Ïɸ½àÆþÎϤȸ«¤Ê¤µ¤ì¡¢
|
||
·«¤êÊÖ¤·»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
|
||
.Pp
|
||
Ä̾³Æ¥ª¥×¥·¥ç¥ó¤Ï¤½¤Îľ¸å¤Î
|
||
.Ar file
|
||
¤ËÂФ·¤Æ¤Î¤ß͸ú¤Ç¤¹¡£
|
||
¥ª¥×¥·¥ç¥óʸ»ú¤¬Âçʸ»ú¤Ç»ØÄꤵ¤ì¤ì¤Ð¡¢
|
||
ºÆ¤ÓÂçʸ»ú¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¥ª¥×¥·¥ç¥ó¤¬¸½¤ì¤ë¤Þ¤Ç¡¢
|
||
¸å³¤¹¤ëÁ´¤Æ¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤ÆŬÍѤµ¤ì¤Þ¤¹¡£
|
||
¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
|
||
.Bl -tag -width indent
|
||
.It Fl f Ar min . Ns Ar max
|
||
¹Ô¤Î¹½À®Í×ÁǤò¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó
|
||
.Ar min . Ns Ar max
|
||
¤Ë½¾¤Ã¤Æ½ÐÎϤ·¤Þ¤¹¡£¤³¤³¤Ç
|
||
.Ar min
|
||
¤ÏºÇ¾®¥Õ¥£¡¼¥ë¥ÉÉý¡¢
|
||
.Ar max
|
||
¤ÏºÇÂç¥Õ¥£¡¼¥ë¥ÉÉý¤Ç¤¹¡£
|
||
¤â¤·
|
||
.Ar min
|
||
¤¬ 0 ¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤ì¤Ð¡¢
|
||
¥Õ¥£¡¼¥ë¥ÉÉý¤òËþ¤¿¤¹¤¿¤á¤Ë 0 ¤¬Éղ䵤ì¤Þ¤¹¡£
|
||
¤â¤·
|
||
.Ar min
|
||
¤¬ `\-' ¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤ì¤Ð¡¢¤½¤ÎÍ×ÁǤϥե£¡¼¥ë¥ÉÆâ¤Çº¸µÍ¤á¤µ¤ì¤Þ¤¹¡£
|
||
.It Fl p Ar min . Ns Ar max
|
||
.Fl f
|
||
¤ÈƱÍͤǤ¹¤¬¡¢
|
||
¤³¤Î¥Õ¥¡¥¤¥ë¤¬ EOF ¤Ë㤷¤¿¤Ë¤â¤«¤«¤ï¤é¤ºÂ¾¤Î¥Õ¥¡¥¤¥ë¤¬¤Þ¤À»Ä¤Ã¤Æ¤¤¤ì¤Ð¡¢
|
||
¤³¤Î¥Õ¥¡¥¤¥ë¤Î¥Õ¥£¡¼¥ë¥É¤ò¥Ñ¥Ç¥£¥ó¥°¤·¤Þ¤¹¡£
|
||
.It Fl s Ar sepstring
|
||
¼¡¤Î¥Õ¥¡¥¤¥ë¤«¤é¤Î¹ÔÍ×ÁǤòɽ¼¨¤¹¤ëÁ°¤Ë
|
||
.Ar sepstring
|
||
¤òɽ¼¨¤·¤Þ¤¹¡£
|
||
¤³¤Î¥ª¥×¥·¥ç¥ó¤ÏºÇ½ª¥Õ¥¡¥¤¥ë¤Î¸å¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
|
||
.It Fl t Ar c
|
||
ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î¹Ô¤Î½ªÃ¼Ê¸»ú¤È¤·¤Æ¡¢²þ¹Ôʸ»ú¤ËÂ夨¤Æ¡¢
|
||
.Ar c
|
||
¤òÍѤ¤¤Þ¤¹¡£
|
||
¾Êά¤µ¤ì¤¿³Æ½ÐÎϹԤˤϡ¢Ä̾²þ¹Ôʸ»ú¤¬Äɲ䵤ì¤Þ¤¹¡£
|
||
.El
|
||
.Pp
|
||
Ê£¿ô¥Õ¥¡¥¤¥ë¤òʤ٤Æɽ¼¨¤¹¤ë´ÊÊؤÊÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï
|
||
.Xr pr 1
|
||
¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£
|
||
.Sh »ÈÍÑÎã
|
||
¼¡¤Î¥³¥Þ¥ó¥É
|
||
.Bd -literal
|
||
lam file1 file2 file3 file4
|
||
.Ed
|
||
.Pp
|
||
¤Ï4¤Ä¤Î¥Õ¥¡¥¤¥ë¤ò³Æ¡¹¹ÔËè¤Ë·ë¹ç¤·¤Þ¤¹¡£
|
||
4¤Ä¤Î°Û¤Ê¤ë¥Õ¥¡¥¤¥ë¤Î¹Ô¤ò¥Þ¡¼¥¸¤¹¤ë¤Ë¤Ï¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤òÍѤ¤¤Þ¤¹¡£
|
||
.Bd -literal
|
||
lam file1 \-S "\\
|
||
" file2 file3 file4
|
||
.Ed
|
||
.Pp
|
||
1¤Ä¤Î¥Õ¥¡¥¤¥ë¤Î¹Ô¤ò1¹Ô¤ª¤¤Ë·ë¹ç¤¹¤ë¤Ë¤Ï¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤òÍѤ¤¤Þ¤¹¡£
|
||
.Bd -literal
|
||
lam \- \- < file
|
||
.Ed
|
||
.Pp
|
||
`@' ¤Ç¼¨¤µ¤ì¤¿Éôʬ¤òÃÖ´¹¤·¤Æ letter ¤òºîÀ®¤¹¤ë¤Ë¤Ï¡¢
|
||
°Ê²¼¤Î¥³¥Þ¥ó¥É¤òÍѤ¤¤Þ¤¹¡£
|
||
.\" ¢¬¤³¤ÎÉôʬ¡¢¤ä¤ä°ÕÌ£ÉÔÌÀ¡£¸¶Ê¸¤Ï°Ê²¼¤ÎÄ̤ꡣ
|
||
.\" a form letter with substitutions keyed by `@' can be done with
|
||
.Bd -literal
|
||
lam \-t @ letter changes
|
||
.Ed
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr join 1 ,
|
||
.Xr paste 1 ,
|
||
.Xr pr 1 ,
|
||
.Xr printf 3
|
||
.Sh µ¬³Ê
|
||
.Nm
|
||
¤Îµ¡Ç½¤Î°ìÉô¤Ï¡¢
|
||
.Xr paste 1
|
||
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤È¤·¤Æ¡¢
|
||
.St -p1003.2
|
||
¤¬É¸½à²½¤·¤Æ¤¤¤Þ¤¹¡£
|
||
.Sh ¥Ð¥°
|
||
.Nm
|
||
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢¥Þ¥ë¥Á¥Ð¥¤¥Èʸ»ú¤òǧ¼±¤·¤Þ¤»¤ó¡£
|