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"

Comments

Popular posts from this blog

How to get Active Transactions and Locks from MySQL

Example of a PAC file