Answers for "read file using shell script"

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language