Section: split and csplit

Use numeric suffixes

bash
bash
split -d -l 1000 bigfile.txt chunk_
Explanation

Numeric suffixes can be easier to sort and reason about than alphabetic ones.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing split and csplit
Split a file by line count
Create chunks of 1000 lines each.
OpenIn sheetbashsame section
Split a file by size
Create 50 MB chunks.
OpenIn sheetbashsame section
Split using regex boundaries
Break a file at repeated pattern boundaries.
OpenIn sheetbashsame section
Pass stdin items as arguments
Convert lines into command arguments.
Show unified diff
Compare two text files with context.
Show most frequent error messages
Count and rank repeated lines in a log.