shell script for loop lines in file code example
Example 1: bash iterate over lines of a file
while read p; do
echo "$p"
done <peptides.txt
Example 2: shell foreach line
cat file | while read -r a; do echo $a; done
while read p; do
echo "$p"
done <peptides.txt
cat file | while read -r a; do echo $a; done