Bash Scripting Nuggets

From thecentric

For Loop:

HOSTS="host1 host2"

for host in $HOSTS; do
    echo item: $host
done
Navigation