function fname(){ ...}while read linedo num1=`echo $line | awk '{print $1}'` num2=`echo $line | awk '{print $2}'` fname $num1 $num2done < $file