[brluglist] counter..
Dustin Puryear
dpuryear at usa.net
Fri Apr 6 09:05:28 CDT 2001
Mark Orr wrote:
<em>> You know, Bash 2.0x will accept a C-like for loop syntax:
<em>>
<em>> for (( i=0; i<=15; i++ )) ; do echo $i ; done
<em>>
<em>> Or you could do something like this:
<em>>
<em>> i=0;
<em>> while (( i<=15 )) ; do echo $i ; i=$(($i + 1)); done
Well, the script needs to be Bourne shell compatible. Pretty cool
though.
Regards, Dustin
--
Dustin Puryear <dpuryear at usa.net>
http://members.telocity.com/~dpuryear
In the beginning the Universe was created.
This has been widely regarded as a bad move. - Douglas Adams
================================================
BRLUG - The Baton Rouge Linux User Group
Visit http://www.brlug.net for more information.
Send email to majordomo at brlug.net to change
your subscription information.
================================================
<!-- body="end" -->
<hr noshade>
<ul>
<li><strong>Next message:</strong> johnahebert at yahoo.com: "[brluglist] Support LA SB 455: Create a single IT department for LA state dept."
<li><strong>Previous message:</strong> Mark Orr: "Re: [brluglist] counter.."
<li><strong>In reply to:</strong> Mark Orr: "Re: [brluglist] counter.."
<li><strong>Messages sorted by:</strong>
[ date ]
[ thread ]
[ subject ]
[ author ]
[ attachment ]
</ul>
<hr noshade>
<small>
<em>
This archive was generated by hypermail 2.1.2
: <em>Thu Sep 06 2001 - 11:10:52 CDT</em>
</em>
</small>
</body>
</html>
More information about the General
mailing list