bash iterate over lines of a file 1

bash iterate over lines of a file

while read p; do
  echo "$p"
done 

Here is what the above code is Doing:
1. We're using the read command to read the contents of the file peptides.txt.
2. We're using the while loop to iterate over the contents of the file.
3. We're using the echo command to print the contents of the file.

Similar Posts