Unix/Linux Go Back    



WHILE LOOP CONDITION CHECK

Shell Programming and Scripting




Kindly Note - This is a Single User Post by Forum Member ichigo Regarding:
WHILE LOOP CONDITION CHECK.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 12-16-2009   -   Original Discussion by dashing201
ichigo ichigo is offline
Ghostdog (Read Only)
 
Join Date: Dec 2009
Last Activity: 19 December 2009, 6:21 AM EST
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts

Code:
var1=0
var2=10
gawk -v v1="$var1" -v v2="$var2" 'BEGIN{
    while(v1 < v2){
        print v1
        v1++
    }
} '