You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
release/v1 | 3 years ago | |
README.md | 3 years ago | |
build.sh | 3 years ago | |
sumcheck.c | 3 years ago | |
zsplit.c | 3 years ago |
README.md
文件分离程序
概述:
这个程序主要解决一些嵌入式系统没有 split指令,无法对大文件进行分离打包
Usage:
zsplit 文件名字
@执行完之后会自动将文件分离成100M为单位大小的文件
sumcheck
@对文件求一个sum8的和,和的结果用u32保存
文件分离和合并
分离
./zsplit file
合并
cat file.* >file
Tip:
这么合并可能会存在BUG,例如合并 file.1 file.2 ...file.10 file.11,此时cat的默认排序不一定是从1到11,
一个简单的解决办法,通过手动排序实现合并
cat file.1 file.2 ... file.10 file.11 > file
检查完整性
./sumcheck file
编译
export CC=gcc
./build.sh