mirror of
https://github.com/cheat/cheat.git
synced 2026-05-28 03:58:44 +02:00
New Sheet: csplit - used to split a file into parts
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# Split a file based on pattern
|
||||
csplit input.file '/PATTERN/'
|
||||
|
||||
# Use prefix/suffix to improve resulting file names
|
||||
csplit -f 'prefix-' -b '%d.extension' input.file '/PATTERN/' '{*}'
|
||||
Reference in New Issue
Block a user