大佬教程收集整理的这篇文章主要介绍了linux – 将文件从给定的’x'(起始)偏移复制到给定’y'(结束)偏移的工具,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
1) Copy source file starting from 100 byte till 250th byte $cp /path/to/source/file /path/to/dest/file -s 100 -e 250 2) Create md5sum of the source file starting from 100byte till 250th byte $md5sum /path/of/src/file -s 100 -e 250 xxxxxx-xxxxx-xxxxx-xxxx-xx 3) Confirm that destination file created from step 1 is right by comparing the md5sum generated from step 2. $md5sum /path/of/dest/file xxxxxx-xxxxx-xxxxx-xxxx-xx
# dd if=/path/to/source/file of=/path/to/destination/file bs=1 skip=100 count=250
对于2)我不确定这是否可以通过标准工具实现.
[编辑]
啊哈,找到了一条路:
对于2)
# dd if=/path/to/source/file bs=1 skip=100 count=250 | md5sum
对于3)
md5sum /path/to/destination/file
以上是大佬教程为你收集整理的linux – 将文件从给定的’x'(起始)偏移复制到给定’y'(结束)偏移的工具全部内容,希望文章能够帮你解决linux – 将文件从给定的’x'(起始)偏移复制到给定’y'(结束)偏移的工具所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。