using ack in place of grep
To use Ack, make sure you have Perl installed and run the following commands in Ubuntu
sudo apt-get install ack
sudo apt-get install ack-grep
Now you can use ack-grep command to search for matches in the files
ack-grep -i some-text
# use ack-grep --help to list the possible options.