#!/bin/ksh set -A array $(</tmp/YourInput) echo ${array[*]} echo "Total array elements :" ${#array[*]}