Instead of the while with array business i propose this:
asac@thinki:/tmp/linaro-android-build-tools$ list=`shuf -i 2-4 -n 3` asac@thinki:/tmp/linaro-android-build-tools$ FIRST=`echo $list | awk '{ print $1 }'` asac@thinki:/tmp/linaro-android-build-tools$ SECOND=`echo $list | awk '{ print $2 }'` asac@thinki:/tmp/linaro-android-build-tools$ THIRD=`echo $list | awk '{ print $3 }'`
Instead of the while with array business i propose this:
asac@thinki: /tmp/linaro- android- build-tools$ list=`shuf -i 2-4 -n 3` /tmp/linaro- android- build-tools$ FIRST=`echo $list | awk '{ print $1 }'` /tmp/linaro- android- build-tools$ SECOND=`echo $list | awk '{ print $2 }'` /tmp/linaro- android- build-tools$ THIRD=`echo $list | awk '{ print $3 }'`
asac@thinki:
asac@thinki:
asac@thinki: