The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cannot access Apache web server from Wan side, only Lan side. davidmanvell Web Programming, Web 2.0 and Mashups 1 08-05-2009 08:07 PM
How to Merge / combine / join / paste 2 text files side-by-side cajunfries Shell Programming and Scripting 3 04-27-2009 08:25 PM
Script to place selected columns from a group of files side by side in a new file ks_reddy Shell Programming and Scripting 8 02-12-2009 12:09 PM
How to print two sql query outputs side by side in excel prasee Shell Programming and Scripting 6 09-08-2007 03:20 AM
Having a Unix system installed side to side with Windows? Pcslider UNIX for Dummies Questions & Answers 14 01-29-2002 06:21 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-24-2009
strasner strasner is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 16
display whats in an array side by side

ok, so ive got some values that are inputed by a user and are stored in an array. Now what i want to do is change this piece of code below to show ina different way.
Code:
}
for (( num=0; num<9; num++ ))
do
    echo ${arr[$num]}
done
}
which outputs the array contents each on a seperate line. I want to output whats in the array onto a single line.

so, if the user inputs the letter "a" i want to automatically put that in the first array box. But if the user inputs the letter "b" then i want to automatically put that into the second array box.

sorry for the quickness of my second thread, im on a deadline today.

thanks in advance.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0