For eg, I want to store the contents of the command ipconfig
in an array, such that each line of output is stored in a new index of array, i.e.
array[0]
contains the 1st line output.
array[1]
contains the 2nd line output and so on.
How can I achieve that?