Skip to content

Instantly share code, notes, and snippets.

@manix84
Created October 17, 2012 09:07
Show Gist options
  • Save manix84/3904608 to your computer and use it in GitHub Desktop.
Save manix84/3904608 to your computer and use it in GitHub Desktop.
Find files named X containing a specified string.
# Usage xgrok "ABC" *.txt
function xgrok() {
find . -name "${2}" -type f | xargs grep -i $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment