mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-01 05:21:06 +01:00
6 lines
182 B
Plaintext
6 lines
182 B
Plaintext
|
# 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/' '{*}'
|