![]() |
|
|
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 |
| why the script name not displayed and not sh invoked? | hongwei | UNIX for Advanced & Expert Users | 4 | 03-31-2009 08:36 AM |
| Data displayed in two lines | Ninjaa | Shell Programming and Scripting | 2 | 02-06-2009 04:44 AM |
| Password is getting displayed | shafi2all | Shell Programming and Scripting | 3 | 06-23-2008 10:32 AM |
| swlist is not displayed in HP-UX | vasanthan | HP-UX | 4 | 04-24-2008 09:03 AM |
| hostname not displayed | Ronny | SUN Solaris | 7 | 06-14-2004 03:55 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Variables in paths dont get displayed
I have a variable embedded in a path, and when I print the path, the variable name gets printed out, and not the actual value. Here is an example.
NODE='database1' j='/home/log/$NODE/alert$NODE.log' echo $j Result that I got : /home/log/$NODE/alert$NODE.log Result that I expected: /home/log/database1/alertdatabase1.log Can someone please tell me if I am forgetting something? Thanks, Moe |
| Bookmarks |
| Tags |
| variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|