×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: bejoy balan
Added: Oct 17, 2014 9:58 AM
Views: 20
Tags: grep
grep
  1.  grep -R "PEHD" *
  2. grep -R "your word" .
  3. -n will print the line number, where it matched in the file.
  4. -i will search case-insensitive (capital/non-capital letters).
  5.  
  6. grep -inR "your regex pattern" .