while read line linux 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