I have the following file and call cat myfile | ./myscript.sh:
(Item)
(Values)
blabla
blabla
(StopValues)
(Item)
(Values)
hello
hello
(StopValues)
In my script I save the piped content from cat to a variable: s=$(cat)
How can I split this string to have (in context of this example) an array containing 2 variables now, one saying
(Item)
(Values)
blabla
blabla
(StopValues)
the other one saying
(Item)
(Values)
hello
hello
(StopValues)