Skip to content

Instantly share code, notes, and snippets.

@radamant
Created October 15, 2013 21:40
Show Gist options
  • Save radamant/6999111 to your computer and use it in GitHub Desktop.
Save radamant/6999111 to your computer and use it in GitHub Desktop.
Finds init* methods in Objective-C that contain self.property=value
find code-folder/ -name '*.m' -exec pcregrep -M 'init.*(\n|[\{])+\{(\n|[^\}])+self\.(\n|[^\}])+\}' {} \; -exec echo "Filename: " {} \;q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment