자세한 내용은 https://stackoverflow.com/questions/22101778/how-to-preserve-line-breaks-when-storing-command-output-to-a-variable/22101842#22101842 여기에 잘 써있음