LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 07-04-2009, 04:37 AM   #16
cscscheng
LQ Newbie
 
Registered: Feb 2006
Posts: 1
Thanked: 0

[Log in to get rid of this advertisement]
i think u may also use
while []
do
do something
done


code:
i=5;while((i<10));do echo $i;((i++));done
cscscheng is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to loop over text file lines within bash script for loop? johnpaulodonnell Linux - Newbie 5 05-01-2009 09:27 AM
BASH hangman: loop which adds the character to the variable if it matches uzi85 Programming 3 03-28-2009 10:31 AM
bash - loop over variable array names talanis Programming 2 02-19-2009 12:09 PM
bash/sh: global or local variable with for (loop) isssue frenchn00b Programming 9 11-06-2008 08:24 AM
bash loop within a loop for mysql ops br8kwall Programming 10 04-30-2008 04:50 AM


All times are GMT -5. The time now is 03:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration