I'm using select string to search a file for errors. Is it possible to exclude search patterns as with grep. Ex:
grep ERR* | grep -v "ERR-10"
select-string -path logerror.txt -pattern "ERR"
logerror.txt
OK
ERR-10
OK
OK
ERR-20
OK
OK
ERR-10
ERR-00
I want to get all the ERR lines, but not the ERR-00 and ERR-10
-Exclude 'ERR-10'