in reply to How grep IP-addresses that is an exact match?
If you want an exact match you either want to anchor your regex somehow (... /,$host$/... probably in this case; something like /(?:^|\D)\Q$host\E(?:\D|$)/ more generally), or split your data and test with eq.
|
|---|