The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #1 (permalink)  
Old 09-01-2008
nmahendran nmahendran is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 5
Unhappy Increment nested for loop parllely

Hi ,

I am trying to increment the nested for loops parellely,but i cant ,i used continue 2 but the second loop not getting increment.

no1="1 6 5 4 8"
no2="4 7 8 0 1"
for var1 in $no1 ; do
for var2 in $no2 ; do
line1
line 2
line 3
continue 2
done
done

Please help on this