fork download
  1. #!/bin/bash
  2. # your code goes here
  3. declare -a array
  4. i=0
  5. while read -r input; do
  6. array[$i]=$input
  7. ((i++))
  8. done
  9.  
  10. echo ${array[@]}
Success #stdin #stdout 0s 5028KB
stdin
one
two
three
four
five
six
stdout
one two three four five