csplit.1 (a866e170777b42fd7921eadd6e7e664f3a031d60) csplit.1 (6c7216df785592bb069469113f556dfd1946ed5d)
1.\" Copyright (c) 2002 Tim J. Robbins.
2.\" 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.

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

119The
120.Ev LANG , LC_ALL , LC_COLLATE
121and
122.Ev LC_CTYPE
123environment variables affect the execution of
124.Nm
125as described in
126.Xr environ 7 .
1.\" Copyright (c) 2002 Tim J. Robbins.
2.\" 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.

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

119The
120.Ev LANG , LC_ALL , LC_COLLATE
121and
122.Ev LC_CTYPE
123environment variables affect the execution of
124.Nm
125as described in
126.Xr environ 7 .
127.Sh EXIT STATUS
128.Ex -std
127.Sh EXAMPLES
128Split the
129.Xr mdoc 7
130file
131.Pa foo.1
132into one file for each section (up to 20):
133.Pp
134.Dl "csplit -k foo.1 '%^\e.Sh%' '/^\e.Sh/' '{20}'"
135.Pp
136Split standard input after the first 99 lines and every 100 lines thereafter:
137.Pp
138.Dl "csplit -k - 100 '{19}'"
129.Sh EXAMPLES
130Split the
131.Xr mdoc 7
132file
133.Pa foo.1
134into one file for each section (up to 20):
135.Pp
136.Dl "csplit -k foo.1 '%^\e.Sh%' '/^\e.Sh/' '{20}'"
137.Pp
138Split standard input after the first 99 lines and every 100 lines thereafter:
139.Pp
140.Dl "csplit -k - 100 '{19}'"
139.Sh EXIT STATUS
140.Ex -std
141.Sh SEE ALSO
142.Xr sed 1 ,
143.Xr split 1 ,
144.Xr re_format 7
141.Sh SEE ALSO
142.Xr sed 1 ,
143.Xr split 1 ,
144.Xr re_format 7
145.Sh HISTORY
146A
147.Nm
148command appeared in PWB UNIX.
149.Sh STANDARDS
150The
151.Nm
152utility conforms to
153.St -p1003.1-2001 .
145.Sh STANDARDS
146The
147.Nm
148utility conforms to
149.St -p1003.1-2001 .
150.Sh HISTORY
151A
152.Nm
153command appeared in PWB UNIX.