Last active
September 7, 2018 11:57
-
-
Save Langmans/085ffde61e8c9f880665 to your computer and use it in GitHub Desktop.
MWB diff
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
# if you use git gui/cmd shell... | |
# *.mwb diff=mwb |
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
[diff "mwb"] | |
textconv = mwbdiff |
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
#!/usr/bin/env bash | |
unzip -o -p $1 document.mwb.xml | sed -r 's/\s_ptr_="[0-9A-Z]+"/ _ptr="xxx" /g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chmod +x ./mwbdiff
mkdir ~/bin/
cp ./mwbdiff ~/bin/