这个程序主要解决一些嵌入式系统没有 split指令,无法对大文件进行分离打包
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.

41 lines
793 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. # 文件分离程序
  2. ```
  3. 概述:
  4. 这个程序主要解决一些嵌入式系统没有 split指令,无法对大文件进行分离打包
  5. Usage:
  6. zsplit 文件名字
  7. @执行完之后会自动将文件分离成100M为单位大小的文件
  8. sumcheck
  9. @对文件求一个sum8的和,和的结果用u32保存
  10. ```
  11. # 文件分离和合并
  12. ```
  13. 分离
  14. ./zsplit file
  15. 合并
  16. cat file.* >file
  17. Tip:
  18. 这么合并可能会存在BUG,例如合并 file.1 file.2 ...file.10 file.11,此时cat的默认排序不一定是从1到11,
  19. 一个简单的解决办法,通过手动排序实现合并
  20. cat file.1 file.2 ... file.10 file.11 > file
  21. 检查完整性
  22. ./sumcheck file
  23. ```
  24. # 编译
  25. ```
  26. export CC=gcc
  27. ./build.sh
  28. ```