#!/bin/bash files=(1 2 3)for var in ${files[@]};do echo $vardone echoecho len=${#files[*]}for (( i = len-1; i >= 0; i-- ))do echo ${files[i]}done
Standard input is empty
1 2 3 3 2 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!