The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
while loop in /bin/sh
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
while loop in /bin/sh
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
03-11-2009
radoulov
addict
Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,885
Change this:
Code:
[$var -lt 1]
to this
Code:
[ $var -lt 1 ]
You need a space after the opening bracket and another one before the closing one.
radoulov
View Public Profile
Find all posts by radoulov
Find radoulov's past nominations received
Find radoulov's present nominations given