bash while read line do code example
Example 1: bash while read line loop from variable
while read -r line
do
echo "line=[$line]"
done < <(cat jj)
Example 2: read file line loop in bash
for word in $(cat peptides.txt); do echo $word; done
while read -r line
do
echo "line=[$line]"
done < <(cat jj)
for word in $(cat peptides.txt); do echo $word; done