bash loop line file code example
Example 1: bash iterate over lines of a file
while read p; do
echo "$p"
done <peptides.txt
Example 2: bash single line loop
while true; do foo; sleep 2; done
while read p; do
echo "$p"
done <peptides.txt
while true; do foo; sleep 2; done