mirror of
https://github.com/hamishcoleman/thinkpad-ec
synced 2024-11-19 21:25:36 +00:00
BUG: make slicer work when input file is larger then offset, also it is now more optimised
This commit is contained in:
parent
ae7885f5fd
commit
4771c92564
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user