From owner-freebsd-questions Sun Dec 17 20:10:39 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 20:10:37 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f157.law6.hotmail.com [216.32.241.157]) by hub.freebsd.org (Postfix) with ESMTP id 40A0137B400 for ; Sun, 17 Dec 2000 20:10:37 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 17 Dec 2000 20:10:37 -0800 Received: from 165.228.128.11 by lw6fd.law6.hotmail.msn.com with HTTP; Mon, 18 Dec 2000 04:10:36 GMT X-Originating-IP: [165.228.128.11] From: "Aaron Hill" To: davidd@datasphereweb.com Cc: questions@freebsd.org Subject: Re: Script: Variable substition within a variable? Date: Mon, 18 Dec 2000 04:10:36 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 18 Dec 2000 04:10:37.0158 (UTC) FILETIME=[79AD7860:01C068A8] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks for your prompt reply. >I think what you're looking for is something along the lines of: >echo "Your name is " $fileone I'm afraid that doesn't work. It seems that variable substitution only works to one level - maybe this is for the best too. What I mean is the contents of $fileone is $name so the shell does the right thing to substitute $fileone with $name in the output but I'd like it to do the same again and substitute $name with Aaron. I can picture that this might not be do-able because it would be resource consuming if the shell was designed to recurse like this. Thanks again. 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