#!/bin/sh
#
while IFS= read -r line; do
#echo "$line"
# Extract values from Tab separated file using Cut command. 
# -D switch is omitted as default delimiter is Tab  
guestname=$( echo "$line" | cut -f1 )
guestpath=$( echo "$line" | cut -f2 )
echo "$guestname"
echo "$guestpath"

sh /usr/local/bhyveopil/startbhyvevm.sh $guestname $guestpath &

done < /usr/local/bhyveopil/listofvms 
