Last active
August 15, 2022 14:23
-
-
Save datapaganism/b1e325695e36ebefe3b4b2482d5a58d8 to your computer and use it in GitHub Desktop.
Takes two parameters, the original STL file and a patch and will update the original file with the patch
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
# ./patch_stl.sh <originalFile> <patchFile> | |
# remember to chmod +x | |
# Takes two parameters, the original STL file and a patch and will update the original file with the patch | |
# xxd $1 > $1.hex && patch $1.hex < $2 && xxd -r $1.hex > $1 | |
# rm $1.hex | |
cp $1 $1.backup | |
xxd -r $2 $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment