How to use grep to search for a line with one of two words but not both? – unix.stackexchange.com

I want to search for lines with 'word1' XOR 'word2' in a text file. So it should output lines with word1, word2 but not the lines with both of these words. I wanted to use the XOR but I do not know ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to use grep to search for a line with one of two words but not both? – unix.stackexchange.com"