$ 0 0 Another useful variant is pipe to tr:echo "${my_array[@]}" | tr '''\n'This looks simple and compact