loop lines bash code example
Example 1: bash single line loop
while true; do foo; sleep 2; done
Example 2: bash loop lines in file
#!/bin/bash
filename='peptides.txt'
echo Start
while read p; do
echo $p
done < $filename
while true; do foo; sleep 2; done
#!/bin/bash
filename='peptides.txt'
echo Start
while read p; do
echo $p
done < $filename