bash print a line from each file with a name code example Example: bash for each line of file while read p; do echo "$p" done <peptides.txt