Last active
March 5, 2017 08:41
-
-
Save OwenChia/c8a815e65df3472d1ab8e67b303e5478 to your computer and use it in GitHub Desktop.
extract key from mfd file
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
#Usage: | |
# source /path/to/exf.sh | |
# exf /path/to/m1.mfd | |
# | |
#How to remove? | |
# unset -f exf | |
#or u can use unfunction in zsh: | |
# unfunction exf | |
exf () {(xxd $1 | awk '/[37bf]0:/ && NR <= 64 {print $2 $3 $4, $7 $8 $9}')}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment