Created
March 19, 2015 13:27
-
-
Save p53ud0k0d3/2c1ddd6bb5db4466f073 to your computer and use it in GitHub Desktop.
HackerRank Read In 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[@]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment