while read line; do echo $line done < file.txt
#!/bin/bash while read line do echo $line done < /path/to/file