curl ifconfig.me # можно и сразу в переменную IP = $(curl ifconfig.me) # опубликовано в https://t.me/gitgate