#!/bin/bash
read -p "Enter any string separated by comma(,) " entry #reading string value
IFS=',' #setting comma as delimiter
read -a strarr <<<"$entry" #reading entry as an array as tokens separated by IFS
for (( n=0; n < ${#strarr[*]}; n++ ))
do
echo "${strarr[n]}"
done
To embed this project on your website, copy the following code and paste it into your website's HTML: