mirror of
https://github.com/cheat/cheat.git
synced 2024-11-14 08:01:09 +01:00
New Sheet: csplit - used to split a file into parts
This commit is contained in:
parent
74dfd51601
commit
bc40ced2c1
1 changed files with 5 additions and 0 deletions
5
cheat/cheatsheets/csplit
Normal file
5
cheat/cheatsheets/csplit
Normal file
|
@ -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/' '{*}'
|
Loading…
Reference in a new issue