Subject: Re: small question about sh script
To: Rui-Xiang Guo <rxg@ms25.url.com.tw>
From: Johan A. van Zanten <johan@ewranglers.com>
List: netbsd-help
Date: 02/27/2002 12:03:26
---In message <20020228005818.A20414@rxgpc.sparqnet.net>
>Hi, all
>I want to use echo command to add one line text includes $FOO/BAR to a new file.
>Something likes this:
>echo "$FOO/BAR" >> FILE
>But I only get /BAR in the button of FILE.
>I just want the $FOO exist on FILE, not it's 'value'. :)
>Could someone please tell me how to do this? Thanks!

echo '$FOO/BAR' >> FILE

 - or -

echo "\$FOO/BAR" >> FILE

 --johan