Vahagn
Vahagn

Reputation: 4850

How to specify ignore pattern in grep?

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

Upvotes: 4

Views: 12004

Answers (2)

Gareth Davidson
Gareth Davidson

Reputation: 4917

Use an --exclude pattern as already answered here

Upvotes: 4

darioo
darioo

Reputation: 47203

Use ack.

Upvotes: 2

Related Questions