Exclude Files When Using Grep

Uncategorized Add comments

grep -ir –exclude=*.{ext1,ext2,ext3} ‘searchterm’ .

I needed this when searching for terms that were in javascript and SQL files.

It’s not pretty when they’re included.

Leave a Reply

WP Theme & Icons by N.Design Studio | Akismet has gobbled 348,921 spam comments...Mmmm Tasty :-)
Entries RSS Comments RSS Log in