Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gheja/split


https://github.com/gheja/split

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

split
=====

This utility splits files into several parts, that's all.

The program will try to open the input file in read-only mode and then split it to multiple 1024 MiB (1073741824 bytes) parts. Output filenames will be the ``, where `` is an 8 character long zero padded integer starting from 0, so if the `` is "part" then the created files will be `part00000000`, `part00000001`, `part00000002` and so on.

The files created are simply the input file split into multiple parts so joining the parts together again is simple as copying more binary files (use /B) with one destination:
```
copy /b part00000000+part00000001+part00000002 joined.txt
```

Note: the input file should exactly match (checksums must be equal) with the joined one. If this is not the case, something went wrong for sure!

The block size is currently hard-coded, might change in the future.

Usage
-----
```
split
```

Example
-------
```
split test.txt part
```

(Yeah, basically I had enough of all the crappy shareware/bloatware/gradient-in-the-background-so-it-is-eight-megabytes-ware "split" solutions for Windows...)