Use grep to find files matching several file types that contain certain phrasses

Hello dear members,

im having linux bash script to search around 30 pathes for files that contains phrasses from my phrasses file. This is the command used:

/bin/nice -n 19 grep -sRil "$phrasse" /home/$foldername/public_html >> filesmatchingphrasses

There is quite big amount of phrasses and foldernames and search is done thru many files so i would like to allow grep (or any other linux command?) to examine only files of around 5 certain file types. Example: .php, .htm, .html

I wanted to...

Use grep to find files matching several file types that contain certain phrasses

from Site & Server Administration http://ift.tt/1Trw0qR
via IFTTT
Previous
Next Post »
Thanks for your comment