, , read , , , IFS , . , read, . :
lines=()
while read; do
lines+=("$REPLY")
done <<< "$mytext"
- :
IFS='+' read -a lines <<< "${mytext//$'\n'/+}"
$ IFS=@
$ echo "${lines[*]}"
line one@line two@line three
mapfile (a.k.a. readarray) , , Bash 4:
mapfile -t lines <<< "$mytext"
$ printf '[%s]\n' "${lines[@]}"
[line one]
[line two]
[line three]
-t mapfile .