I very often use a simple curl command to get IP addresses details. curl ipinfo.io/111.222.333.444
Almost everytime I got the IP address in the clipboard
Is there a way to use a bash variable to automatically have the clipboard value use for IP address?
Ideally I'd like to create an alias Alias iploc = 'curl ipinfo.io/{pbcopy}'
So then each time I copy an ip address in clipboard I can just type "iploc" in terminal and get the result. l