Skip to content

Instantly share code, notes, and snippets.

@chrisxaustin
Created April 28, 2016 22:06
Show Gist options
  • Save chrisxaustin/ffc01e069f18f1a47238fcde21ca12eb to your computer and use it in GitHub Desktop.
Save chrisxaustin/ffc01e069f18f1a47238fcde21ca12eb to your computer and use it in GitHub Desktop.
grep within all .java files within this directory and all child directories
#!/bin/sh
# Usage: jgrep foo
# Searches all java files under the current directory
grep -i "$*" `find . -name '*.java'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment