Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/Arrays/UNIX-Shell/arrays-4.sh
Normal file
5
Task/Arrays/UNIX-Shell/arrays-4.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
x=${#alist[*]} # start with the number of items in the array
|
||||
while [[ $x > 0 ]]; do # while there are items left
|
||||
: $((x--)) # decrement first, because indexing is zero-based
|
||||
echo "Item $x = ${alist[$x]}" # show the current item
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue