I have a command like this:
| grep -v @param | grep -v @return | grep -v @Test | grep -v @throws
And it's getting bigger. Is there a way to make this neater?
I have a command like this:
| grep -v @param | grep -v @return | grep -v @Test | grep -v @throws
And it's getting bigger. Is there a way to make this neater?
Another option:
You can use:
or you can use the -E flag to enable extended regular expressions, which will allow you to avoid escaping the parentheses and pipe characters:
Alternatively, you can place all your patterns in a file, one pattern per line, and use
Would make things easier if you use the patterns regularly