I'm trying to do a PuTTY search for a specific text "Omega". But I want to exclude two specific URLs that also contain the text "Omega".
I have tried:
grep -ril "Omega" --exclude='<p> | <a href="www.omega.com"> Omega</a> |</p>' --exclude='<li><a href ="www.omega.com"> Omega</a></li>'
Also tried:
grep -ril "Omega" --exclude={<p> | <a href=" www.omega.com"> Omega</a> |</p>,<li><a href ="www.omega.com" target="_blank">Omega</a></li>}
Note the 2 pipes in one of the excludes is a divider for my navigation menu. I'm trying write the results to a log file. I'm not generating the results that I need.