I have a file
sites.txt that is generated by a script. It's a list of host names.
I have another list of host names
I need to check whether any of the host names present in the
sites.txt are present in
I tried following but failed:
#!/bin/bash if grep -Fxq "$sites.txt" sites_old.txt then found something// else not found// fi
I also tried for but failed. I know I'm not using the statements correctly.