Hi all,
I have a file with a list of IP addresses. For instance:
192.168.10.5
192.168.10.15
192.168.10.16
192.168.10.155
....
I want to run grep over it and get as a result only the second one, 192.168.10.15:
Code:
grep 192.168.123.15 ~/ip_list
The result is that I get both 192.168.10.15 and 192.168.10.155
How can I match only the .15 IP? I tried a few things while googling but no luck.
Thanks a lot in advance!