![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| shell program | nivas | Shell Programming and Scripting | 8 | 02-21-2008 05:23 AM |
| shell program | jyotiardeshana | Shell Programming and Scripting | 4 | 01-03-2006 06:51 AM |
| shell program | rameshparsa | Shell Programming and Scripting | 1 | 11-17-2005 01:18 PM |
| C shell Program | Reza Nazarian | Shell Programming and Scripting | 2 | 07-28-2003 03:52 PM |
| shell program | nageshrc | UNIX for Advanced & Expert Users | 2 | 11-27-2001 12:32 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
help with shell program
I want to print the value of variables a1, a2, a3 in for loop in the following program:
a1=this a2=is a3=printed for((i=1;i<4;i++)) do var=a$i #w=`echo $var` e=${var} echo $e done But actually I get a1,a2,a3 as the output not the "this is printed" So the main question is if I have a variable name(say p1) in another variable(in Q) how will I print the value of p1 from Q? Thanks, |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|