Posted By

jarnaldich on 11/16/10


regex search unix regexp text grep find

Versions (?)

UNIX regexp search down a directory tree

 / Published in: Bash

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

  1. find . -iname <file_pattern> -exec grep -n <text> {} \; -print

Report this snippet  

You need to login to post a comment.