4 ms·
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
by zwieback 5y 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
- rustyminnow 5y agoIf 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
- zwieback 5y agoor even something like --exclude={foo,ba[rz]} , probably getting the syntax wrong