Posted By

kfaulk1 on 03/06/09


search grep find egrep

Versions (?)

grep string in file type

 / Published in: Bash

  1. ## To find by file type in this case, .e and .pl files
  2. ## replace <string> with desired string to grep for...
  3. find . | egrep -i "\.(e|pl)" | xargs grep <string>

Report this snippet  

You need to login to post a comment.