I need to tokenize in string in KornShell (ksh). I have got the following script for bash; but it does not seem to work in ksh.
The script is below. Please help in making work for ksh.
OLDIFS=$IFS
IFS=","
read -a array <<< "$(printf "%s" "$APPLICATION_NAMES")"
IFS=$OLDIFS
for i in "${array[@]}"
do
:
# do whatever on $i
echo "Checking status of $i"
done
1 Answer