Don't use Grep, use Ack
ack is a replacement for grep, designed for developers.
$ grep functionName * -ril | grep php$
becomes
$ ack --php functionName
and if you have other file endings that you use for your php (or any other language, you can add them to a .ackrc file
--type-add
php=.inc
--type-add
sql=.ddl,.mysql,.sql
--type-add
xsl=.xsl
Written by Stuart Grimshaw
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Grep
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#