4

How can I make grep to ignore some files (e.g. .svn directories, binary files, etc.) while grepping recursively?

kaya3
  • 47,440
  • 4
  • 68
  • 97
Vahagn
  • 4,670
  • 9
  • 43
  • 72

2 Answers2

4

Use an --exclude pattern as already answered here

Community
  • 1
  • 1
Gareth Davidson
  • 4,857
  • 2
  • 26
  • 45
2

Use ack.

darioo
  • 46,442
  • 10
  • 75
  • 103