The following code gives output of a log containing the string “Type: Error”
grep -E "$Currentdate" *.log | grep "Type: Error" | sort -u
what is the code If I want to get output of all the lines in log except the lines with string “Type: Error”
Thanks in advance
With this, first, you’ll display to video your file, then you’ll use
-voption that invert the matches and the trick is done!For multiple string, you could do something like this