How to use grep to search for a line with one of two words but not both? – unix.stackexchange.com 13:29 Posted by Unknown No Comments 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 Unknown
0 Comment to "How to use grep to search for a line with one of two words but not both? – unix.stackexchange.com"
Post a Comment