Grep to find files in a path containing a pattern

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

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

Copy this code and paste it in your HTML
  1. grep -ir "MyPattern" *

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.