grep string in file type


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.