Hi friends,
I need to parse the following data in the given format and get the desired output. I need a function, which takes the input as a parameter and the desired output will be returned from the function.
INPUT(single parameter as complete string)
A;BCF;DFG;FD
OUTPUT(array each as a individual element)
A BCF DFG FD (in an array)
But the input can be of any length and any number of elements. I mean array size is dynamic.
Can you pleas help me out to do this in shell script.