I'm new on bash and I want to convert a csv file to different arrays. My csv has 6 lines with same number of columns each and I need to take lines 3,4,5 and 6 with all columns and make and array out of every line, any idea how can I do that?
My csv looks like:
- A, B, C, ...
- 1, 1, 1,...
- 7, 23, 58,...
- 8, 24, 59,...
- 9, 25, 60,...
- 10, 26, 61,...
And I want my output to look like:
array1=(7,23,58,...)
array2=(8,24,59,...)
array3=(9,25,60,...)
array4=(10,26,61,...)
Many thanks
,or,followed by a space? Is first column with 1,2,3,4,5,6 part of your file?