Answers for "read lines from a file bash with for"

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

bash get line from file

sed 'NUMq;d' file
Posted by: Guest on October-18-2021

Code answers related to "read lines from a file bash with for"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language