#!/bin/bash# your code goes heredeclare -a arrayi=0while read -r input; do array[$i]=$input ((i++))done echo ${array[@]}
one two three four five six
one two three four five
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!