LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Closed Thread
 
Search this Thread
Old 11-23-2009, 09:17 AM   #1
Phier
Member
 
Registered: Nov 2009
Posts: 31

Rep: Reputation: 0
Multiple variable for loop (bash)


Hey,

Maybe this would be a better place to post my question, located here:

http://www.linuxquestions.org/questi...op-bash-770964

I saw i posted it in the non *nix forum by mistake.

Hopefully someone here can help...

Cheers.
 
Old 11-23-2009, 09:22 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I would recommend that you just use a "while" loop instead of a a for loop.

For several different reasons.

IMHO .. PSM
 
Old 11-23-2009, 11:13 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Please don't make duplicate posts-----since this just points to another, it counts as a dupe.

I'll report the other one to be moved---and I'll also offer some help!!

Closed
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Multiple variable for loop (bash) Phier Programming 9 11-24-2009 08:54 AM
Using a variable to control a BASH for loop JohnE1 Programming 15 07-04-2009 03:37 AM
bash - loop over variable array names talanis Programming 2 02-19-2009 11:09 AM
bash/sh: global or local variable with for (loop) isssue frenchn00b Programming 9 11-06-2008 07:24 AM
define multiple variable through loop in makefiles sun_sun Programming 1 11-28-2007 08:16 AM


All times are GMT -5. The time now is 01:00 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration