Answers for "read line bash txt"

18

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
-1

read file line loop in bash

for word in $(cat peptides.txt); do echo $word; done
Posted by: Guest on August-14-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language