It seems you need to prefix the name with the word name
Why don't you just do that from your original script e.g.
echo "name: $name"
If you want fixed length output use printf in your original script e.g.
Code:
cat <<EOF | while read n e d
x y z
aa bbb cc
EOF
do
printf "%-5s %-10s %-10s\n" $n $e $d
done
x y z
aa bbb cc