In order to check how many IPs are connected to my server I use the command as follows.sudo awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -nrDisplay unique IP's in second column and the number of times this IP solicited Nginx, like :23 123.45.6.83 34.56.78.41 8.9.4.3I want to have a third column with the localization of this IP. For this I use geoiplookup. Example of output :23 123.45.6.8 Netherlands3 34.56.78.4 England1 8.9.4.3 NetherlandsExamples of geoiplookup output :GeoIP Country Edition: US, United States#orGeoIP Country Edition: FR, FranceSo a split at ,  is enough.How can I transform the precedent output in order to have the localization on third column in one line ?
Formating another column in bash
columns;text formatting