split.1 (cb29445a92708496312b59658abe2020d2359ac2) split.1 (0e286f086c7bf9c728c2917887ad46ec7916271e)
1.\" Copyright (c) 1990, 1991, 1993, 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 18 unchanged lines hidden (view full) ---

27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)split.1 8.3 (Berkeley) 4/16/94
33.\" $FreeBSD$
34.\"
1.\" Copyright (c) 1990, 1991, 1993, 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 18 unchanged lines hidden (view full) ---

27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)split.1 8.3 (Berkeley) 4/16/94
33.\" $FreeBSD$
34.\"
35.Dd August 10, 2006
35.Dd March 16, 2008
36.Dt SPLIT 1
37.Os
38.Sh NAME
39.Nm split
40.Nd split a file into pieces
41.Sh SYNOPSIS
42.Nm
43.Op Fl l Ar line_count

--- 4 unchanged lines hidden (view full) ---

48.Oo
49.Sm off
50.Cm K | k | M | m | G | g
51.Sm on
52.Oc
53.Op Fl a Ar suffix_length
54.Op Ar file Op Ar prefix
55.Nm
36.Dt SPLIT 1
37.Os
38.Sh NAME
39.Nm split
40.Nd split a file into pieces
41.Sh SYNOPSIS
42.Nm
43.Op Fl l Ar line_count

--- 4 unchanged lines hidden (view full) ---

48.Oo
49.Sm off
50.Cm K | k | M | m | G | g
51.Sm on
52.Oc
53.Op Fl a Ar suffix_length
54.Op Ar file Op Ar prefix
55.Nm
56.Fl n Ar chunk_count
57.Op Fl a Ar suffix_length
58.Op Ar file Op Ar prefix
59.Nm
56.Fl p Ar pattern
57.Op Fl a Ar suffix_length
58.Op Ar file Op Ar prefix
59.Sh DESCRIPTION
60The
61.Nm
62utility reads the given
63.Ar file

--- 43 unchanged lines hidden (view full) ---

107.Cm G
108is appended to the number, the file is split into
109.Ar byte_count
110gigabyte pieces.
111.It Fl l Ar line_count
112Create smaller files
113.Ar line_count
114lines in length.
60.Fl p Ar pattern
61.Op Fl a Ar suffix_length
62.Op Ar file Op Ar prefix
63.Sh DESCRIPTION
64The
65.Nm
66utility reads the given
67.Ar file

--- 43 unchanged lines hidden (view full) ---

111.Cm G
112is appended to the number, the file is split into
113.Ar byte_count
114gigabyte pieces.
115.It Fl l Ar line_count
116Create smaller files
117.Ar line_count
118lines in length.
119.It Fl n Ar chunk_count
120Split file int
121.Ar chunk_count
122smaller files.
115.It Fl p Ar pattern
116The file is split whenever an input line matches
117.Ar pattern ,
118which is interpreted as an extended regular expression.
119The matching line will be the first line of the next output file.
120This option is incompatible with the
121.Fl b
122and

--- 49 unchanged lines hidden ---
123.It Fl p Ar pattern
124The file is split whenever an input line matches
125.Ar pattern ,
126which is interpreted as an extended regular expression.
127The matching line will be the first line of the next output file.
128This option is incompatible with the
129.Fl b
130and

--- 49 unchanged lines hidden ---