On 05-Apr-2001 [EMAIL PROTECTED] wrote: <em>>> Does anyone remember the tool used in shell scripts to create a count <em>>> (ie., 1 2 3 4 5)? Something like: <em>>> <em>>> for i in `tool 1 5'; do ... <em>>> <em>>> which results in: <em>>> <em>>> for i in 1 2 3 4 5; do ... <em>>> <em>>> ? I can't remember it for the life of me. <em>> <em>> You're looking for "seq", which I also could not remember for the life of me, <em>> but I went ahead and looked through /usr/bin and found it. "seq --help" on <em>> an <em>> applicable box for the switches. You know, Bash 2.0x will accept a C-like for loop syntax: for (( i=0; i<=15; i++ )) ; do echo $i ; done Or you could do something like this: i=0; while (( i<=15 )) ; do echo $i ; i=$(($i + 1)); done
-- Mark Orr [EMAIL PROTECTED] <p>================================================ BRLUG - The Baton Rouge Linux User Group Visit http://www.brlug.net for more information. Send email to [EMAIL PROTECTED] to change your subscription information. ================================================ <!-- body="end" --> <hr noshade> <ul> <li><strong>Next message:</strong> Dustin Puryear: "Re: [brluglist] counter.." <li><strong>Previous message:</strong> John Beamon: "Re: [brluglist] LILO problems - EBDA too big" <li><strong>In reply to:</strong> [EMAIL PROTECTED]: "Re: [brluglist] counter.." <li><strong>Next in thread:</strong> Dustin Puryear: "Re: [brluglist] counter.." <li><strong>Reply:</strong> Dustin Puryear: "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>
