in reply to How grep IP-addresses that is an exact match?

If you want an "exacty match" use the "equality operator" also known as "eq" or "==". grep$_==$ip,<FILE>;