pablocattaneo
3/20/2017 - 6:54 PM

Search string inside a folder

Search string inside a folder

 grep -Rin 'pattern_to_match' directory_to_search
 
 /* Exclude folder unnecessary */
 grep -Rw --exclude-dir="\var" --exclude-dir="\pub" 'pattern_to_match' directory_to_search
 
 /* The search is over this extensions */
  
  --include \*.html