The UNIX and Linux Forums  


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



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 !!

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 3.00 average. Display Modes
  #8 (permalink)  
Old 11-26-2009
Registered User
 

Join Date: Nov 2009
Posts: 12
Smile more

It can also be used to define tables (variables with indices) as follows:
Code:
>i=3
   assign a value to a3:
>eval a$i=gaga
   retrieve the value of a3:
>eval a='$'$(echo a$i)
>echo $a
gaga

Limit: it does not work if there are spaces in the value that is assigned.
Sponsored Links
Reply

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 Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Passing parameter from one file to shell script Amit.Sagpariya Shell Programming and Scripting 7 10-29-2008 08:08 AM
passing parameter 4m shell script to a DB stored procedure hema2026 Shell Programming and Scripting 0 11-16-2007 06:55 AM
passing oracle parameters back to Shell satnamx Shell Programming and Scripting 4 01-16-2007 09:59 AM
Passing arrays to oracle from unix satnamx Shell Programming and Scripting 4 04-05-2006 07:08 PM
Passing arrays to oracle from unix krishnasai Shell Programming and Scripting 7 08-12-2002 08:01 PM



All times are GMT -4. The time now is 09:19 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