I thought the following would group the output of my_command in an array of lines: IFS='\n' array_of_lines=$(my_command); so that $array_of_lines[1] would refer to the first line in the output of my_command, $array_of_lines[2] to the second, and so forth. However, the command above doesn't seem to work well. It seems to also split the output of my_command around the character n, as I have checked
