Skip to content

Instantly share code, notes, and snippets.

@kmanna
Last active August 29, 2015 14:05
Show Gist options
  • Save kmanna/c75be99dd25a0bd9745d to your computer and use it in GitHub Desktop.
Save kmanna/c75be99dd25a0bd9745d to your computer and use it in GitHub Desktop.
#!/bin/bash
# Search through a AOSP branch for something interesting
set -x
find $HOME/ovation \
\( \
-iname Makefile \
-o -iname \*.xml \
-o -iname \*.py \
-o -iname \*.aidl \
-o -iname \*.mk \
-o -iname \*.java \
-o -iname \*\.c \
-o -iname \*\.cpp \
-o -iname \*\.h \
\) \
-print0 | xargs -0 grep --color "$@"
@edaustin
Copy link

useful, thanks!

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