bash command for each line in file 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
while read p; do
echo "$p"
done <peptides.txt
while true; do foo; sleep 2; done