Daniel William
New member
How do I exclude multiple words from grep?
Answer
To exclude particular words or lines, use the –invert-match option. Use grep -v as a shorter alternative. Exclude multiple words with grep by
adding -E and use a pipe (|) to define the specific words. Optionally make it case insensitive with the -i as listed above.
Answer
To exclude particular words or lines, use the –invert-match option. Use grep -v as a shorter alternative. Exclude multiple words with grep by
adding -E and use a pipe (|) to define the specific words. Optionally make it case insensitive with the -i as listed above.