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
If you don't want your read to be broken by newline character, use -
#!/bin/bash while IFS='' read -r line || [[ -n "$line" ]]; do echo "$line" done < "$1"
Then run the script with file name as parameter.