#!/bin/bash input="/path/to/txt/file" while IFS= read -r line do echo "$line" done < "$input"
cat file | while read line do echo "a line: $line" done
#if you want to display the contents of a file on the terminal, do: $ cat filename.file