Extracting unique IPs from logfile

Extracting IP from logfile sometimes can give you headache. Especially the logfile is more than thousand line.

So here I share with you trick to extract IP in terminal:

This one is shows the IPs with the count:

Any Comments?