Let's say i have a file that looks like this:
element1,element2
element3,element4
element5,element6
How can I read this file in bash and store it in an array as follows:
array={element1,element2,element3,element4,element5,element6}
Can someone help me with the code? Thanks!