print elements of array line by line bash code example Example: bash display items in array $ printf '%s\n' "${my_array[@]}"