diff --git a/cheat/cheatsheets/csplit b/cheat/cheatsheets/csplit new file mode 100644 index 0000000..6d7d8ef --- /dev/null +++ b/cheat/cheatsheets/csplit @@ -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/' '{*}'