I want to write a bash script that will get user input and store it in an array. Input: 1 4 6 9 11 17 22
I want this to be saved as array.
|
read it like this:
Test:
print # of elements in array:
OR loop through the above array
|
|||||||||||||||||
|
How about this:
Hit Ctrl-D to stop entering numbers. |
|||||
|