while IFS='' read -r line || [[ -n "$line" ]]; do echo "do something with $line. RESULT: "; done < textfile_to_parse.txt