Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
18
rated 0 times [  18] [ 0]  / answers: 1 / hits: 32478  / 1 Year ago, sat, december 3, 2022, 11:21:33

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?


More From » bash

 Answers
1

Another option:



... | grep -v -e @param -e @return -e @Test -e @throws

[#41895] Sunday, December 4, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulerio

Total Points: 172
Total Questions: 124
Total Answers: 109

Location: Hungary
Member since Thu, Aug 6, 2020
4 Years ago
fulerio questions
;