Bash - Array For Loop

#!/bin/bash # Array versions=( 1 1.5 2 2.5 3 3.5 ) # Loop for VERSION in "${versions[@]}" ; do # Output echo "Version: ${VERSION}" done

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.