Last Updated: February 25, 2016
·
262
· thom_nic

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 ${@:-'.'}
}