gh: grep here
put this in your ~/.functions
:
# Grep here: Find the search string in files in the given (or current) directory or pattern
function gh() {
pattern=$1
shift
grep -rniI $pattern ${@:-'.'}
}
Written by Thom Nichols
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#