jsplit, jtool split
A platform agent tool used to split files. You can call it as jsplit
or jtool split
.
Syntax
jsplit [-h|-?|-help] [-l <loglevel>] [-f <logfile>] <path> [-s|-size <bytes>] [-p|-parity 0 or 1]
Argument | Description |
---|---|
-h | -? |
-l <loglevel> | Set the logging level. |
-f <logfile> | Log to file instead of stdout/stderr. |
<path> | Path to file to split |
-s, -size <bytes> | 1M |
-p, -parity 0 or 1 |
Example
The following UNIX shell example shows how to split a file using jtool split
ls /tmp/file/
jtool split /tmp/file/file.txt
ls /tmp/file/
Output:
file.txt
INFO 2023-10-02 06:07:45,072 CEST [8760-jsplit] jsplit.main - Splitting file.txt size 26812998 into 27 files (00 to 26)
file.txt file.txt.02 file.txt.05 file.txt.08 file.txt.11 file.txt.14 file.txt.17 file.txt.20 file.txt.23 file.txt.26
file.txt.00 file.txt.03 file.txt.06 file.txt.09 file.txt.12 file.txt.15 file.txt.18 file.txt.21 file.txt.24 file.txt.spl
file.txt.01 file.txt.04 file.txt.07 file.txt.10 file.txt.13 file.txt.16 file.txt.19 file.txt.22 file.txt.25
ls /tmp/file/
jtool split /tmp/file/file.txt -p 1
ls /tmp/file/
Output:
file.txt
INFO 2023-10-02 06:07:45,913 CEST [8848-jsplit] jsplit.main - Splitting file.txt size 26812998 into 27 files (00 to 26)
file.txt file.txt.02 file.txt.05 file.txt.08 file.txt.11 file.txt.14 file.txt.17 file.txt.20 file.txt.23 file.txt.26
file.txt.00 file.txt.03 file.txt.06 file.txt.09 file.txt.12 file.txt.15 file.txt.18 file.txt.21 file.txt.24 file.txt.p00
file.txt.01 file.txt.04 file.txt.07 file.txt.10 file.txt.13 file.txt.16 file.txt.19 file.txt.22 file.txt.25 file.txt.spl