How do I iterate through each line of a text file with Bash?
With this script:
echo \"Start!\" for p in (peptides.txt) do echo \"${p}\" done
Use a while loop, like this:
while IFS= read -r line; do echo "$line" done
Notes:
If you don't set the IFS properly, you will lose indentation.
IFS
You should almost always use the -r option with read.
Don't read lines with for