New Sheet: csplit - used to split a file into parts

This commit is contained in:
Shadab Zafar 2015-07-24 18:51:55 +05:30
parent 74dfd51601
commit bc40ced2c1

5
cheat/cheatsheets/csplit Normal file
View 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/' '{*}'