#!/bin/bash

cd $(cd "$(dirname "$0")"; pwd)

SAVEIFS=$IFS

IFS=":"

while read office ip

do

       echo "$ip"

       eval $office=$ip

done < toalip.txt

IFS=$SAVEIFS