linux command loop through files code example Example: how to iterate through a file linux while read p; do echo "$p" done < example.txt