Nov 7, 2018

How to read from file line by line in bash script


1
2
3
4
5
FILE=myfile

while read CMD; do
    echo "$CMD"
done < "$FILE"