1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 16:06:03 +02:00

split: remove split into n files, add split by pattern

This commit is contained in:
Jonathan Dahan 2019-01-14 12:44:46 -05:00 committed by Starbeamrainbowlabs
parent 9f41228b7a
commit bcda9b60e3

View file

@ -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):