sorin@sorin:~$ IFS=',' ;for i in `echo "Hello,World,Questions,Answers,bash shell,script"`; do echo $i; done
Hello
World
Questions
Answers
bash shell
script
sorin@sorin:~$
from: https://stackoverflow.com/questions/7718307/how-to-split-a-list-by-comma-not-space
No comments:
Post a Comment