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
I like to use xargs instead of while. xargs is powerful and command line friendly
xargs
while
cat peptides.txt | xargs -I % sh -c "echo %"
With xargs, you can also add verbosity with -t and validation with -p
-t
-p