for each line in file sh code example
Example 1: bash for each line of file
while read p; do
echo "$p"
done <peptides.txt
Example 2: for each line in file bash
while read p; do
echo "$p"
done <peptides.txt
while read p; do
echo "$p"
done <peptides.txt
while read p; do
echo "$p"
done <peptides.txt