on Mon, Sep 24, 2001 at 01:27:16AM -0500, Jeremy ([EMAIL PROTECTED]) wrote:
> 
> Hi,
> 
> I'm sorry about this being so OT, but I've been searching around in
> documentation (man pages, books, scripting HOWTOs, etc) for a several hours
> now, and I can't find anything that will answer my question.
> 
> I have a series of variables that I'm importing to a bash script from another
> file, and I need a way to run a loop to echo the contents of each one in
> sequence.  As an example, say this file has the following:
> 
> var1=data1
> var2=data2
> var3=data3
> var4=data4
> 
> Is there some way I can make my script start with var1 and echo each one
> through var4 WITHOUT hardcoding each seperate variable into the script?

    $ man bash
    search ^ *Arrays

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?              Home of the brave
  http://gestalt-system.sourceforge.net/                    Land of the free
   Free Dmitry! Boycott Adobe! Repeal the DMCA!  http://www.freesklyarov.org
Geek for Hire                      http://kmself.home.netcom.com/resume.html

Attachment: pgpMiX4JBidbG.pgp
Description: PGP signature

Reply via email to