Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/documentation/manual-pages/ja/man1/csplit.1
18093 views
.\" Copyright (c) 2002 Tim J. Robbins.
.\" 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.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
.\"
.\" %FreeBSD: src/usr.bin/csplit/csplit.1,v 1.8 2004/07/12 10:17:02 tjr Exp %
.\"
.\" $FreeBSD$
.Dd July 12, 2004
.Dt CSPLIT 1
.Os
.Sh ̾��
.Nm csplit
.Nd ʸ̮�˱������ե������ʬ��
.Sh ��
.Nm
.Op Fl ks
.Op Fl f Ar prefix
.Op Fl n Ar number
.Ar file args ...
.Sh ����
.Nm
�桼�ƥ���ƥ��ϡ��ѥ�����
.Ar args
����Ѥ���
.Ar file
��ʬ�䤷�ޤ���
.Ar file
�������
.Pq Sq Fl
�ξ�硢
.Nm
��ɸ�����Ϥ��ɤߤޤ���
.Pp
���ץ����ϼ����̤�Ǥ�:
.Bl -tag -width indent
.It Fl f Ar prefix
���������ե�����ˡ�
.Ar prefix
�dz��Ϥ���̾����Ϳ���ޤ���
�ǥե���Ȥ�
.Dq Pa xx
�Ǥ���
.It Fl k
���顼��ȯ�������ꡢ
.Dv HUP ,
.Dv INT ,
.Dv TERM
�����ʥ��������Ƥ⡢���ϥե�����������ޤ���
.It Fl n Ar number
.Ar number
�Ĥ� 10 �ʿ�����
.Ar prefix
�θ�ǻȤäƥե�����̾��������ޤ���
�ǥե���Ȥ� 2 �Ǥ���
.It Fl s
�ƽ��ϥե�����������ˡ��������礭����ɸ����Ϥؽ񤭤ޤ���
.El
.Pp
.Ar args
���ڥ��ɤϡ����Υѥ�������Ȥ߹�碌�Ǥ�:
.Bl -tag -width indent
.It Xo
.Sm off
.Cm / Ar regexp Cm / Op Oo Cm + | - Oc Ar offset
.Sm on
.Xc
���ϤΡ����ߤιԤ��顢���ꤵ�줿��������ɽ�� (�����ޤߤޤ���)
�ޤǤ���ʤ�ե������������ޤ���
��ά��ǽ��
.Ar offset
����ꤹ��ȡ����ιԤ���ޥå����Ȥ��ޤ���
.It Xo
.Sm off
.Cm % Ar regexp Cm % Op Oo Cm + | - Oc Ar offset
.Sm on
.Xc
�嵭��Ʊ���Ǥ��������ϥե�����Ϻ�������ޤ���
.It Ar line_no
���ϤΡ����ߤιԤ��顢���ꤵ�줿���ֹ� (�����ޤߤޤ���) �ޤ�
����ʤ�ե������������ޤ���
.It Cm { Ns Ar num Ns Cm }
ľ���Υѥ��������ꤷ����������֤��ޤ���
���줬���ֹ�ѥ������³����硢
.Ar num
��ˤ錄�ꡢ
.Ar line_no
����˿����ե����뤬��������ޤ���
�ե�����κǽ�ιԤϡ����Ū����ͳ������ֹ� 1 �Ǥ���
.El
.Pp
���٤ƤΥѥ����󤬽��������ȡ��Ĥ�����ϥǡ���
(�⤷�����) �Ͽ����ե�����˽񤫤�ޤ���
.Pp
���ߤιԤ�����Ǥ�ʬ��䡢�ե�����ν�ü����Ǥ�ʬ����׵᤹��ȡ�
���顼�ˤʤ�ޤ���
.Sh �Ķ��ѿ�
.Ev LANG , LC_ALL , LC_CTYPE ,
.Ev LC_COLLATE
�δĶ��ѿ�����
.Xr environ 7
�ε����̤�ˡ�
.Nm
�μ¹Ԥ˱ƶ����ޤ���
.Sh ������
.Xr mdoc 7
�ե�����
.Pa foo.1
�򡢳ƥ����������� 1 �ե�����ؤ�ʬ�䤷�ޤ� (���� 20 ��):
.Pp
.Dl "csplit -k foo.1 '%^\e.Sh%' '/^\e.Sh/' '{20}'"
.Pp
�ǽ�� 99 �Ԥθ太��Ӥ��θ�� 100 ����ˡ�ɸ�����Ϥ�ʬ�䤷�ޤ���
.Pp
.Dl "csplit -k - 100 '{19}'"
.Sh ����
.Ex -std
.Sh ��Ϣ����
.Xr sed 1 ,
.Xr split 1 ,
.Xr re_format 7
.Sh ���
.Nm
���ޥ�ɤ� PWB UNIX ���о줷�ޤ�����
.Sh ����
.Nm
�桼�ƥ���ƥ���
.St -p1003.1-2001
��Ŭ�礷�Ƥ��ޤ���