https://github.com/smjcc/merge0
merge two incomplete copies of a file, by replacing NULL bytes in each file with non-NULL bytes from the other
https://github.com/smjcc/merge0
cli download-file file files incomplete merge partial repair torrent util
Last synced: 6 months ago
JSON representation
merge two incomplete copies of a file, by replacing NULL bytes in each file with non-NULL bytes from the other
- Host: GitHub
- URL: https://github.com/smjcc/merge0
- Owner: smjcc
- License: gpl-3.0
- Created: 2022-03-17T19:49:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-27T07:26:54.000Z (6 months ago)
- Last Synced: 2025-03-27T08:30:39.687Z (6 months ago)
- Topics: cli, download-file, file, files, incomplete, merge, partial, repair, torrent, util
- Language: C
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# merge0: Bytewise merge two incomplete files
merge0 [-hqbsefpv?] \ \
merge0 bytewise merges two files' content if they differ only where one byte is 0 (NULL)
If the content of the two files differ only where one of the differing bytes at each offset is zero, then they are bytewise merged by overwriting zeros in one file with the non-zero data of the other file.
## OPTIONS:
-h -? print usage help
-q report only when files are changed
-b show only basenames in messages
-s require files to be of same size
-e allow appending to empty files.
-f force writing to files open by other programs
-p pretend, but change no files
-v show version numberUseful for merging two incomplete copies of the same file, where the missing data is zero or "sparse".
Exactly TWO files must be on the command line.
By default, the smaller file is presumed to have NULL data beyond it's end.