UNIX regexp search down a directory tree

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

Searches down the current directory every file whose name matches (case insensitively) {{file_pattern}} for the regexp {{text}}.

Copy this code and paste it in your HTML
  1. find . -iname <file_pattern> -exec grep -n <text> {} \; -print

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.