#!/bin/bash
inputstr="(1, 2, 3)"
newstr=$(echo $inputstr | sed 's/[()]//g' ) # remove ( and )
IFS=', ' read -r -a myarray <<< "$newstr" # delimiter is ,
for index in "${!myarray[@]}"
do
# echo "$index ${myarray[index]}" # shows index and value
echo "${myarray[index]}" # shows value
done
que fornecem essa saída
./string_to_array.sh
1
2
3