Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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

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

Hopefully someone here can help...

Old 11-23-2009, 09:22 AM   #2
LQ 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.

Old 11-23-2009, 11:13 AM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 PM.

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