fork download
  1. #!/bin/bash
  2.  
  3. files=(1 2 3)
  4. for var in ${files[@]};do
  5. echo $var
  6. done
  7.  
  8. echo
  9. echo
  10.  
  11. len=${#files[*]}
  12. for (( i = len-1; i >= 0; i-- ))
  13. do
  14. echo ${files[i]}
  15. done
Success #stdin #stdout 0s 4432KB
stdin
Standard input is empty
stdout
1
2
3


3
2
1