Answers for "bash read a file line by line"

9

bash read a 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
1

while loop

Create a loop that runs as long as i is less than 10, but increase i with 2 each time.

var i = 0

while(i < 10){
	console.log(i);
    i = i + 2;
}
Posted by: Guest on June-10-2021

Code answers related to "bash read a file line by line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language