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?
scalar, and usespiltand reassign it to anarray. That's one way to go about it.$/-ending line per element.