The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Simple script to return environment variable
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Simple script to return environment variable
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
03-18-2009
rikxik
Registered User
Join Date: Dec 2007
Posts: 250
It is doing what its expected to do. You need to do this:
Code:
#! /usr/bin/csh set VAR_NAME=$1 eval echo \$$VAR_NAME
rikxik
View Public Profile
Find all posts by rikxik
Find rikxik's past nominations received
Find rikxik's present nominations given