3947840b05
Interpretation of a chunk in cut.1 was helped by: Yoshihiko Sarumaru <mistral@imasy.or.jp>, hrs
142 lines
4 KiB
Groff
142 lines
4 KiB
Groff
.\" Copyright (c) 1990, 1991, 1993, 1994
|
|
.\" 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.
|
|
.\"
|
|
.\" @(#)split.1 8.3 (Berkeley) 4/16/94
|
|
.\" %FreeBSD: src/usr.bin/split/split.1,v 1.14 2004/07/11 15:04:16 tjr Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd July 12, 2004
|
|
.Dt SPLIT 1
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm split
|
|
.Nd ¥Õ¥¡¥¤¥ë¤òʬ³ä¤¹¤ë
|
|
.Sh ½ñ¼°
|
|
.Nm
|
|
.Op Fl a Ar suffix_length
|
|
.Op Fl b Ar byte_count[k|m]
|
|
.Op Fl l Ar line_count
|
|
.Op Fl p Ar pattern
|
|
.Op Ar file Op Ar name
|
|
.Sh ²òÀâ
|
|
.Nm
|
|
¤Ï¡¢»ØÄꤵ¤ì¤¿
|
|
.Ar file
|
|
¤ò 1000 ¹Ô¤´¤È¤Ëʬ³ä¤·¤Þ¤¹¡£
|
|
.Ar file
|
|
¤¬Ã±°ì¤Î¥À¥Ã¥·¥å
|
|
.Pq Sq Fl
|
|
¤Þ¤¿¤Ï̵¤¤¾ì¹ç¡¢
|
|
.Nm
|
|
¤Ïɸ½àÆþÎϤòÆɤ߹þ¤ß¤Þ¤¹¡£
|
|
.Pp
|
|
¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£
|
|
.Bl -tag -width Ds
|
|
.It Fl a
|
|
.Ar suffix_length
|
|
ʸ»ú¤ò¡¢¥Õ¥¡¥¤¥ë̾¤Î¥µ¥Õ¥£¥Ã¥¯¥¹¤ÎÀ¸À®¤Ë»ÈÍѤ·¤Þ¤¹¡£
|
|
.It Fl b
|
|
.Ar byte_count
|
|
¥Ð¥¤¥Èñ°Ì¤Çʬ³ä¤·¤Þ¤¹¡£
|
|
.Dq Li k
|
|
¤ò¿ô»ú¤Î¸å¤í¤ËÉÕ¤±¤¿¾ì¹ç¤Ï¡¢
|
|
.Ar byte_count
|
|
¥¥í¥Ð¥¤¥Èñ°Ì¤Çʬ³ä¤·¤Þ¤¹¡£
|
|
.Dq Li m
|
|
¤ò¿ô»ú¤Î¸å¤í¤ËÉÕ¤±¤¿¾ì¹ç¤Ï¡¢
|
|
.Ar byte_count
|
|
¥á¥¬¥Ð¥¤¥Èñ°Ì¤Çʬ³ä¤·¤Þ¤¹¡£
|
|
.It Fl l
|
|
.Ar n
|
|
¹Ôñ°Ì¤Çʬ³ä¤·¤Þ¤¹¡£
|
|
.It Fl p Ar pattern
|
|
³ÈÄ¥Àµµ¬É½¸½¤È¤·¤Æ²ò¼á¤µ¤ì¤ë
|
|
.Ar pattern
|
|
¤ËÆþÎϹԤ¬¥Þ¥Ã¥Á¤¹¤ë¤¿¤Ó¡¢¥Õ¥¡¥¤¥ë¤¬Ê¬³ä¤µ¤ì¤Þ¤¹¡£
|
|
¥Þ¥Ã¥Á¤¹¤ë¹Ô¤Ï¡¢¼¡¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î¹Ô¤Ë¤Ê¤ê¤Þ¤¹¡£
|
|
ËÜ¥ª¥×¥·¥ç¥ó¤Ï¡¢
|
|
.Fl b
|
|
¤ª¤è¤Ó
|
|
.Fl l
|
|
¤Î¥ª¥×¥·¥ç¥ó¤È¶¦¤Ë¤Ï»ØÄê¤Ç¤¤Þ¤»¤ó¡£
|
|
.El
|
|
.Pp
|
|
¥ª¥×¥·¥ç¥ó¤Î¤¢¤È¤Ë°ú¿ô¤ò»ØÄꤷ¤¿¾ì¹ç¡¢ºÇ½é¤Î°ú¿ô¤Ï
|
|
ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î̾Á°¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹¡£
|
|
¤½¤Î¼¡¤Î°ú¿ô¤Ï¡¢Ê¬³ä¤·¤¿¥Ç¡¼¥¿¤ò³ÊǼ¤¹¤ë
|
|
¥Õ¥¡¥¤¥ë̾¤ÎÀÜƬ¸ì¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹¡£
|
|
¤³¤Î¾ì¹ç¡¢Ê¬³ä¤·¤¿¥Ç¡¼¥¿¤ò³ÊǼ¤¹¤ë¥Õ¥¡¥¤¥ë̾¤Ï
|
|
ÀÜƬ¸ì¤Î¤¢¤È¤Ë
|
|
.Dq Li a-z
|
|
¤ÎÈϰϤÎ
|
|
.Ar suffix_length
|
|
¸Ä¤Îʸ»ú¤òÉÕ¤±¤¿¥Õ¥¡¥¤¥ë¤Ë¡¢¼½ñ¼°½ç½ø¤Çʬ³ä¤µ¤ì¤Þ¤¹¡£
|
|
.Fl a
|
|
¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢2 ʸ»ú¤¬ÀÜÈø¸ì¤È¤·¤Æ»ÈÍѤµ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
.Ar name
|
|
°ú¿ô¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢Ê¬³ä¤µ¤ì¤¿¥Ç¡¼¥¿Ì¾¤Ï¡¢ÀÜƬ¸ì¤¬
|
|
.Dq Li x-z
|
|
¤ÎÈϰϤȤʤꡢÁ°½Ò¤ÎÀÜÈø¸ì¤¬ÉÕ¤¤Þ¤¹¡£
|
|
.Sh ´Ä¶ÊÑ¿ô
|
|
.Xr environ 7
|
|
¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¡¢
|
|
.Ev LANG , LC_ALL , LC_CTYPE
|
|
´Ä¶ÊÑ¿ô¤Ï
|
|
.Nm
|
|
¤Î¼Â¹Ô¤Ë±Æ¶Á¤òµÚ¤Ü¤·¤Þ¤¹¡£
|
|
.Sh ¿ÇÃÇ
|
|
.Ex -std
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr csplit 1 ,
|
|
.Xr re_format 7
|
|
.Sh µ¬³Ê
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï
|
|
.St -p1003.1-2001
|
|
¤ËŬ¹ç¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥³¥Þ¥ó¥É¤Ï
|
|
.At v3
|
|
¤«¤éÅо줷¤Þ¤·¤¿¡£
|
|
.Sh ¥Ð¥°
|
|
Îò»ËŪ¤ÊÍýͳ¤Ë¤è¤ê¡¢
|
|
.Ar name
|
|
¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢
|
|
.Nm
|
|
¤Ï ºÇÂç 676 ¸Ä¤Î¥Õ¥¡¥¤¥ë¤Ë¤·¤«Ê¬³ä¤Ç¤¤Þ¤»¤ó¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë̾¤Ëʬ³ä¤·¤¿¾ì¹ç¤Ï¡¢ºÇÂç 2028 ¸Ä¤Î
|
|
¥Õ¥¡¥¤¥ë¤Ëʬ³ä¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
|
|
.Fl a
|
|
¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¡¢¤³¤Î¸Â³¦¤ò²óÈò¤Ç¤¤Þ¤¹¡£
|
|
.Pp
|
|
¥Ñ¥¿¡¼¥ó¤Ë¥Þ¥Ã¥Á¤¹¤ëºÇÂç¹ÔĹ¤Ï 65536 ¤Ç¤¹¡£
|