Bash Loop Through An Array Backwards R