Created
October 17, 2012 09:07
-
-
Save manix84/3904608 to your computer and use it in GitHub Desktop.
Find files named X containing a specified string.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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