Created
March 19, 2015 14:20
-
-
Save p53ud0k0d3/c4b30f1c69ce1801e696 to your computer and use it in GitHub Desktop.
Display an element of an array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i=0 | |
while read x | |
do | |
arr[i]=$x | |
i=$i+1 | |
done | |
echo ${arr[3]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment