Created
March 12, 2019 19:01
-
-
Save danielkucera/8feca88a93ca3ffe917f31ab26d1c9ab to your computer and use it in GitHub Desktop.
part-extract.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRC=$1 | |
DIR=$SRC.ext | |
mkdir $DIR | |
eval `fdisk -l $SRC | grep ^$SRC | awk '{ print "dd if='$SRC' bs=512 of='$DIR'/"$1" skip="$2" count="$4" ; "; }'` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment