Last Updated: February 25, 2016
·
597
· stubbs

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