head_one=foo head_two=bar printf '<%s> ' "${!head@}" # printf '<%s> ' "${!head*}" #