How do I recursively grep files within a given folders except a couple file types?  For example, I'm looking for a string within my workspace folder but it ends up searching inside sql files and generates serialized strings.So in this case, I'd like to grep the workspace folder except sql files.I'm preferably looking for a one-liner if possible.
I would like to grep all files except some file types?
grep
If you have GNU grep you can use the --exclude=GLOB option, likegrep -r --exclude='*.sql' pattern dir/