From bc40ced2c1c9ac606822d568af22c6a5448ac481 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Fri, 24 Jul 2015 18:51:55 +0530 Subject: [PATCH] New Sheet: csplit - used to split a file into parts --- cheat/cheatsheets/csplit | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cheat/cheatsheets/csplit 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/' '{*}'