Created
February 17, 2015 21:23
-
-
Save momorientes/3f09fcda9ff6ff66f875 to your computer and use it in GitHub Desktop.
ddstick
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
#!/bin/bash | |
# give dd output using pv and the correct size parameter | |
SIZE=`wc -c $1 | cut -d " " -f 1` | |
dd if=$1 | pv -s $SIZE | sudo dd of=$2 | |
sync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment