Assign a variable to the result of a command

NEW_IP=$(curl -4 -s -X GET "https://icanhazip.com");