I have a string as follows :
set str = "HELLO SO COMMUNITY| CAN YOU HELP ME"
foreach word ($str)
echo $word
end
Presently, this prints HELLO and then SO and then COMMUNITY and so on. I want the delimeter for the printing to be | . SO the output should be HELLO SO COMMUNITY and then CAN YOU HELP ME. Does anyone know how to do this.