bash script get ip address of host