CSPLIT(1)
β¨ CSPLIT β¨
okay bestie so this is the csplit page from the User Commands section of the manual, aka the girl who chops your file into lil sections based on context lines. she's giving scissors, but make it regex π
π NAME π
csplit β split a file into sections determined by context lines
πΈ SYNOPSIS πΈ
csplit [OPTION]... FILE PATTERN...
π¦ DESCRIPTION π¦
So what she does is: she outputs pieces of FILE separated by PATTERN(s) into files named 'xx00', 'xx01', ..., and then she prints the byte counts of each piece to standard output. the way she just hands you the receipts too?? iconic.
Read standard input if FILE is - β yes bestie, the classic little dash, she eats from stdin.
Mandatory arguments to long options are mandatory for short options too. fr fr, no skipping.
π OPTIONS π
-b,--suffix-format=FORMATβ use sprintf FORMAT instead of%02d-f,--prefix=PREFIXβ use PREFIX instead of'xx'-k,--keep-filesβ do not remove output files on errors (she's keeping the mess, no cleanup era)--suppress-matchedβ suppress the lines matching PATTERN-n,--digits=DIGITSβ use specified number of digits instead of2-s,--quiet,--silentβ do not print counts of output file sizes-z,--elide-empty-filesβ suppress empty output files--helpβ display this help and exit--versionβ output version information and exit
β Each PATTERN may be: β
INTEGERβ copy up to but not including specified line number/REGEXP/[OFFSET]β copy up to but not including a matching line%REGEXP%[OFFSET]β skip to, but not including a matching line{INTEGER}β repeat the previous pattern specified number of times{*}β repeat the previous pattern as many times as possible
A line OFFSET is an integer optionally preceded by '+' or '-'. yes, just the one lil guy, signed or not π«Ά
π AUTHOR π
Written by Stuart Kemp and David MacKenzie. kings, honestly.
π REPORTING BUGS π
Found a bug? spill it, not to me, to the mailing list:
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page:
https://www.gnu.org/software/coreutils/ - General help using GNU software:
https://www.gnu.org/gethelp/ - Report any translation bugs to
https://translationproject.org/team/
π SEE ALSO π
- Full documentation
https://www.gnu.org/software/coreutils/csplit - or available locally via:
info '(coreutils) csplit invocation' - Packaged by Ubuntu (
9.10-1ubuntu2) - Copyright Β© 2026 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later
https://gnu.org/licenses/gpl.html. - This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
okay so real talk: that warranty situation is NO WARRANTY, capital letters, not a vibe, a fact. note it π
and that's the whole page bestie, go forth and split. this was GNU coreutils 9.10, dated August 2026, and yes she served, periodt πβ¨
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms