[Trisquel-users] Sort and Uniq fail to remove all duplicates from a list of hostnames and their IPv4 addresses

Mason Hock mason at masonhock.com
Thu Feb 14 23:44:59 CET 2019


> jaholper1.example.com 	95.182.79.24
> jaholper1.example.com 	95.182.79.24
> jaholper1.example.com 	95.182.79.33
> jaholper1.example.com 	95.182.79.33
> jaholper4.example.com 	109.248.200.4
> jaholper7.example.com 	109.248.203.131
> jaholper7.example.com 	109.248.203.188
> jaholper7.example.com 	109.248.203.189
> jaholper7.example.com 	109.248.203.191
> jaholper7.example.com 	109.248.203.198
> jaholper7.example.com 	185.186.141.79
> jaholper7.example.com 	185.186.142.10
> jaholper7.example.com 	185.186.142.10
> jaholper7.example.com 	185.186.142.100
> jaholper7.example.com 	185.186.142.100
> jaholper7.example.com 	185.186.142.101
> jaholper7.example.com 	185.186.142.101

I pasted that into a file called "test"

$ uniq test
jaholper1.example.com 95.182.79.24
jaholper1.example.com 95.182.79.33
jaholper4.example.com 109.248.200.4
jaholper7.example.com 109.248.203.131
jaholper7.example.com 109.248.203.188
jaholper7.example.com 109.248.203.189
jaholper7.example.com 109.248.203.191
jaholper7.example.com 109.248.203.198
jaholper7.example.com 185.186.141.79
jaholper7.example.com 185.186.142.10
jaholper7.example.com 185.186.142.100
jaholper7.example.com 185.186.142.101

Every item seems to be represented with no duplicates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://listas.trisquel.info/pipermail/trisquel-users/attachments/20190214/6bdb1077/attachment.pgp>


More information about the Trisquel-users mailing list