I have one file with URL's.
Have a second file with domain names only.
remid.de octc-china.com crystalprod.cz gesoc.org.mx springbreakdirect.com daytoncondohunters.com automaxgroup.me
Is there any way to compare the files and remove urls that have same domain name from the second file
Like if urls.txt contain URL with any of domains from domains.txt remove it and save file.
I can do it with sed line by line but it will take quite a while..
Is ther any way to do it with grep or awk one command?