Is there any tool for copying a file from a given start offset to a given (final) offset. I also want to confirm that the tool has the correct copies of the specified bytes by running md5sum. Something like that
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
I know that md5sum does not have the -s and -e options, but I would like to confirm with some tool, given the source file and destination file. thanks in advance
source share