Skip to content

Instantly share code, notes, and snippets.

@rpetrich
Created March 6, 2012 23:09
Show Gist options
  • Save rpetrich/1989658 to your computer and use it in GitHub Desktop.
Save rpetrich/1989658 to your computer and use it in GitHub Desktop.
diff class-dump-z outputs with highlighting
#!/bin/bash
diff -u --show-function-line=^@interface --label="$1" --label="$2" <( class-dump-z -RbSz "$1" ) <( class-dump-z -RbSz "$2" ) | GREP_COLOR='1;32' grep --color=always -e '^\(\+.*$\)\?' | GREP_COLOR='1;31' grep --color=always -e '^\(\-.*$\)\?' | less -FRSX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment