grep

using GREP to search specific file types

Every developer knows and loves GREP, the great search utility available on all Unix-based systems; while it does a great job searching, the options are a little lacking. One such option is restricting the search to only specific file types/extension. Luckily that functionality can be easily wrapped up in a handy script.

Create the script file:

cd /bin sudo vim grepp

(You can name the script whatever you want, I named mine "grepp" for easier typing!)

Paste the following code:

Comments
  • Page 1