Answers for "Shell read file line by line"

9

read file using shell script

#!/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
0

Shell read file line by line

while read line; do    
    echo $line    
done < file.txt
Posted by: Guest on October-06-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language