From bcda9b60e3ef2ea9a1590bfd1b50c2cc4a08d418 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Mon, 14 Jan 2019 12:44:46 -0500 Subject: [PATCH] split: remove split into n files, add split by pattern --- pages/osx/split.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/osx/split.md b/pages/osx/split.md index 303ce3147c..0300902606 100644 --- a/pages/osx/split.md +++ b/pages/osx/split.md @@ -6,9 +6,9 @@ `split -l {{10}} {{filename}}` -- Split a file into 5 files. File is split such that each split has same size (except the last split): +- Split a file by a pattern (the pattern is the head of each split): -`split -n {{5}} {{filename}}` +`split -p {{pattern}} {{filename}}` - Split a file with 512 bytes in each split (except the last split; use 512k for kilobytes and 512m for megabytes):