Posted By

hoffstein on 11/04/08


Tagged

grep


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

hoffstein
paulbooker
robe


Grep to find files in a path containing a pattern


 / Published in: Bash
 

This will return all files in the current directory (and all subdirectories) containing "MyPattern" (replace with any regex), ignoring case-sensitivity.

  1. grep -ir "MyPattern" *

Report this snippet  

You need to login to post a comment.