Exclude Files When Using Grep

Uncategorized No 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.

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