I'm trying to set up a function to make certain grep command easier.
gr() { grep -r --include=*.\{m,h,xib\} $1 \* ; }
The end result should be a recursive grep of all *.m
, *.h
, and *.xib
files, for whatever is specified by the command's argument:
$ gr SearchText
Can anyone demonstrate the correct syntax for this?