BUG: make slicer work when input file is larger then offset, also it is now more optimised

This commit is contained in:
Hamish Coleman 2016-04-24 16:12:10 +10:00
parent ae7885f5fd
commit 4771c92564

View File

@ -24,5 +24,5 @@ read SOURCE OFFSET LENGTH <"$INFOFILE"
set -x set -x
dd if=$SOURCE bs=$[$OFFSET] skip=1 | dd bs=$[$LENGTH] count=1 of="$OUT" dd iflag=count_bytes,skip_bytes if=$SOURCE skip=$[$OFFSET] count=$[$LENGTH] of="$OUT"