I have the following string that I read in from a file in bash
BOB_ENV: DEV\nStorage: @MOM.KV(Name=lol-lol;SCT=c-s-string)\nConn__name: ab-cb-ac-one.sb.w.net\nTest: Test
I am trying to make the \n the delimiter and store into an array
I am not sure if I am doing it properly but I have the following script
test="BOB_ENV: DEV\nStorage: @MOM.KV(Name=lol-lol;SCT=c-s-string)\nConn__name: ab-cb-ac-one.sb.w.net\nTest: Test"
arr=(`echo $test`)
echo ${arr[1]}
right now it splits the string on the spaces I have in the string and stores into the array. I want to split on the \n in the string.