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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-11-2009
ruben.rodrigues ruben.rodrigues is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 45
while loop in /bin/sh

Hi!

I want my script to enter in a while cicle. And I did a:

var=0

while [$var < 1]
do
echo "while"
done

this is very simple because it's just for testing

So what I think that was suppost to happen was
while
while
while
while
while
while
....
....
while

BUT nothing

what is wrong in my while

thanks