bash loop over lines code example
Example 1: bash for each line of file
while read p; do
echo "$p"
done <peptides.txt
Example 2: bash single line loop
while true; do foo; sleep 2; done
Example 3: bash loop lines in file
#!/bin/bash
filename='peptides.txt'
echo Start
while read p; do
echo $p
done < $filename