IFS

Temporarily set IFS to linebreak instead of blank space

old_ifs=$IFS
IFS=$'\n';
# do stuff
IFS=$old_ifs