The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 01-22-2008
ennstate ennstate is offline
Registered User
 

Join Date: Mar 2007
Location: Chennai
Posts: 222
Please try this,

Code:
#!/bin/ksh
set -A array $(</tmp/YourInput)
echo ${array[*]}
echo "Total array elements :" ${#array[*]}
Thanks
Nagarajan G
Reply With Quote