Skip to content

Instantly share code, notes, and snippets.

@Langmans
Last active September 7, 2018 11:57
Show Gist options
  • Save Langmans/085ffde61e8c9f880665 to your computer and use it in GitHub Desktop.
Save Langmans/085ffde61e8c9f880665 to your computer and use it in GitHub Desktop.
MWB diff
# if you use git gui/cmd shell...
# *.mwb diff=mwb
[diff "mwb"]
textconv = mwbdiff
#!/usr/bin/env bash
unzip -o -p $1 document.mwb.xml | sed -r 's/\s_ptr_="[0-9A-Z]+"/ _ptr="xxx" /g'
@Langmans
Copy link
Author

chmod +x ./mwbdiff
mkdir ~/bin/
cp ./mwbdiff ~/bin/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment