bash for each file code example
Example 1: bash loop over files in directory
#!/bin/bash
for filename in /Data/*.txt; do
...
done
Example 2: bash for each line of file
while read p; do
echo "$p"
done <peptides.txt
Example 3: for each line in file bash
while read p; do
echo "$p"
done <peptides.txt