#!/bin/ksh file='interfaces.txt' while read inter time do printf "%s %s\n" "${inter}" "$(echo "0t${time}=Y" | /usr/bin/adb)" done < "${file}"