csplit(1)

πŸ“¦
version 0.7.0 Β· 3 versions
, in epel 10, fedora 43, fedora 44

πŸ’– csplit(1) β€” bestie's guide to splitting files by vibes πŸ’–

okay so this is csplit, straight out of the General Commands Manual, section 1, and it's part of uutils coreutils. she slices a file into little sections based on context lines. no cap, it's giving βœ‚οΈβœ¨


🌸 NAME 🌸

csplit β€” split a file into sections determined by context lines πŸŽ€


✨ SYNOPSIS ✨

csplit [-b|--suffix-format] [-f|--prefix] [-k|--keep-files]
[--suppress-matched] [-n|--digits] [-q|--quiet] [-z|--elide-empty-files]
[-h|--help] [-V|--version] <file> <pattern>

πŸ’… DESCRIPTION πŸ’…

Split a file into sections determined by context lines. that's the whole vibe. you give her a file and a pattern, she gives you sections. iconic. πŸ‘‘


πŸ¦‹ OPTIONS πŸ¦‹

  • -b, --suffix-format <FORMAT> β€” use sprintf FORMAT instead of %02d. so if you want a different naming scheme for your lil files, this is your girl πŸ’«
  • -f, --prefix <PREFIX> β€” use PREFIX instead of 'xx'. swap out that default prefix for something more you 🫢
  • -k, --keep-files β€” do not remove output files on errors. protective queen behavior, fr fr πŸ›‘οΈ
  • --suppress-matched β€” suppress the lines matching PATTERN. they simply don't make the cut, sorry not sorry πŸ™ˆ
  • -n, --digits <DIGITS> β€” use specified number of digits instead of 2. more digits = more main character energy πŸ”’
  • -q, --quiet β€” do not print counts of output file sizes. she's shy today 🀫
  • -z, --elide-empty-files β€” remove empty output files. no empty vibes allowed here πŸ’€
  • -h, --help β€” Print help. always here for you πŸ₯Ί
  • -V, --version β€” Print version. the receipts πŸ“œ

🌈 EXTRA 🌈

Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ..., and output byte counts of each piece to standard output.

so like β€” she chops FILE up at every PATTERN, drops the pieces into 'xx00', 'xx01', and keeps going, and then tells you how many bytes each piece was. receipts included, periodt πŸ’…


πŸ‘‘ VERSION πŸ‘‘

v(uutils coreutils) 0.7.0

and that's the whole page bestie πŸ’– csplit (uutils coreutils) 0.7.0, living her best life in the csplit(1) era β€” go forth and split responsibly, mwah πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from
  • epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
  • epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
  • fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
  • fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms