/.sh Secret
Created
August 27, 2017 11:45
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
MS_dd() | |
{ | |
blocks=`expr $3 / 1024` | |
bytes=`expr $3 % 1024` | |
dd if="$1" ibs=$2 skip=1 obs=1024 conv=sync 2> /dev/null | \ | |
{ test $blocks -gt 0 && dd ibs=1024 obs=1024 count=$blocks ; \ | |
test $bytes -gt 0 && dd ibs=1 obs=1024 count=$bytes ; } 2> /dev/null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment