While/Read | Unix Linux Forums | Shell Programming and Scripting
... code below: #Checks the SQL Directory for files to be released #Do the Packages Specification before the bodies counter=0 while read packageSpecName do packageSpecs[$counter]=`basename $packageSpecName` counter=$counter+1 done < `ls ......