#!/bin/bash SAVEIFS=$IFS; IFS="\n"; while read LINE ; do echo "${LINE}"; done < myFileWithSpaces.txt; IFS=$SAVEIFS;