Hacker News new | ask | show | jobs
by zwieback 1600 days ago
Ah, learned the difference between -i and -I.

I also like --include and --exclude, especially since it allows regex for which files to look at

1 comments

If you need to include/exclude multiple things, you can go `grep pat --exclude={foo,bar,baz}` which expands to: `grep pat --exclude=foo --exclude=bar --exclude=baz`. Much easier than typing out the flag multiple times
or even something like --exclude={foo,ba[rz]} , probably getting the syntax wrong