#!/bin/bash
str="aaa,bbb,ccc,ddd"


OLD_IFS="$IFS"
IFS=","

arr=($str)

IFS="$OLD_IFS"

for s in ${arr[@]}
do
echo "$s"
done