Answers for "sh read file line by line"

9

sh read file line by line

#!/bin/bash
input="/path/to/txt/file"
while IFS= read -r line
do
  echo "$line"
done < "$input"
Posted by: Guest on February-22-2020
8

bash for each line of file

while read p; do
  echo "$p"
done <peptides.txt
Posted by: Guest on April-06-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language