The UNIX and Linux Forums  

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 09-18-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,420
Quote:
Originally Posted by zambo View Post
Actually could have something like:
WHEREIAM= `echo $WHEREIAM | command`
where command(using sed, awk, ...) will replace all environment variables by their value within the shell so that in my example i'll have when echo $WHEREIAM after ===>=/tmp/here/location/dev
if you use double quotes it should give expected result..