The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 11-18-2008
npatwardhan npatwardhan is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 135
i am using arrays in a loop. how do i assign values?

i have the following code which works in bash..

Code:
set i=0 
while ($i < 11)
master_array[i]=${ARRAY[i]}
i++
done
it gives me error at line 3: Variable syntax