By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,035 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,035 IT Pros & Developers. It's quick & easy.

How do I populate array from an string output of a bash string.

P: 1
I need to split an output from a bash script and populate an array with it. So I can manipulate and print that later. Unfortunately I can not find a way to do that.
so what I have thus far is this:
this gives me multi line output such as:
server machine name status
I want to put this into an array so I can print it later (although dictionary would be even nicer with custom fields).
Basically i want to later on display this output in fields within a web page table.

Thank you!
Mar 18 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.