Looping through the content of a file in Bash - Stack Overflow
https://stackoverflow.com/questions/1521462/looping-through-the-content-of-a-file-in-bash/
Web ResultOct 6, 2009 · while read p; do. echo "$p". done <peptides.txt. As pointed out in the comments, this has the side effects of trimming leading whitespace, interpreting backslash sequences, and skipping the last line if it's missing a terminating linefeed. If these are concerns, you can do: while IFS="" read -r p || [ -n "$p" ] do.
DA: 62 PA: 83 MOZ Rank: 84