Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2000 03:53:19 
From:      "Aaron Hill" <hillaa@hotmail.com>
To:        questions@freebsd.org
Subject:   Script: Variable substition within a variable?
Message-ID:  <F175g2UVe3lQN5vnoqt00000f22@hotmail.com>

next in thread | raw e-mail | index | archive | help
Hello!

Can anyone help with a script problem I'm having. Please let me explain what 
I'm trying to do with two example files...

fileone:
$name


filetwo:
#!/bin/sh

name="Aaron"
fileone=`cat fileone`

echo "Your name is $fileone"


When you execute filetwo this is the output you get:
Your name is $name

The output I would like to get is:
Your name is Aaron


Can anyone point out if I've missed something fundamental or if there's 
something that could help me do this substition.


Thanks
Aaron Hill



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F175g2UVe3lQN5vnoqt00000f22>