LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] scripting an array

[ILUG] scripting an array

Alister Waller Awaller at Staffmail.wit.ie
Mon Mar 29 18:35:26 IST 1999


Hi again.

Perhaps I should just ask for suggestions on how to read in an array 
of strings using bash shell scripting. If there is such a way.
I want to read them in from a file that has one entry per line.
I want to put each entry into a case statement, the problem being 
that there may be more or less entries depending on network status. 
This is why I want to build the list from a file that is created with 
current information. I will then read these into, using a loop, a 
case statement giving the user a choice of current options.

I did scripting a while ago and am a bit rusty.

Failing the scripting bit how about the same in C or perl or 
something like that? Or is it too much like a tutorial question for 
the students to answer????

alister 




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell