bash get ip address into variable