Answers for "how to read contents of a file in shell script"

16

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 "how to read contents of a file in shell script"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language