how to iterate through lines in a file unix code example
Example 1: bash iterate over lines of a file
while read p; do
echo "$p"
done <peptides.txt
Example 2: bash loop lines in file
#!/bin/bash
filename='peptides.txt'
echo Start
while read p; do
echo $p
done < $filename