<br><br><div><span class="gmail_quote">On 6/26/05, <b class="gmail_sendername">James Gray</b> <<a href="mailto:james@grayonline.id.au">james@grayonline.id.au</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 27 Jun 2005 07:13 am, Todd Deshane wrote:<br><br>> When you want to compare strings use ==<br>> If you want to compare numbers you the -eq (equal)<br>> -lt (less than) -le (less than or equal to) .... etc.
<br>><br>> so one of your conditions was something like:<br>><br>> $num_tries != $max<br>> instead it could be<br>><br>> $num_tries -lt $max<br><br><PEDANT><br>The translation of "!=" is "not equal" which in bash scripting (comparing
<br>numbers) is "-ne", as opposed to "-lt" (less than) as stated above.<br><br>Although I agree that "-lt" is probably better logic than "-ne" in the case of<br>the OP's script. :)<br>
</PEDANT></blockquote><div><br>
Glad you were pedant on this one, I am not a bash expert<br>
but can usually figure out or look up what I need, wasn't<br>
sure what not equals was, but knew that less than equals<br>
was better logic.<br>
<br>
 </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Cheers,<br><br>James<br>--<br>In Brooklyn, we had such great pennant races, it made the World Series
<br>just something that came later.<br>  -- Walter O'Malley, Dodgers owner<br><br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br><a href="http://lists.ubuntu.com/mailman/listinfo/ubuntu-users">
http://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br><br><br><br></blockquote></div>Regards,<br>
Todd<br>