Hi
I am using tcsh.
I want display in a file_1 like this.
$VARIBALE
I gave in a termianl
> echo "\$VARIBALE" > file_1
Its not workning.
It was giving VARIBALE: Undefined variable.
I gave \ before $, but why it was giving undefined varible?
Please help me.
Thanks in advance
Chaitanya.
Use single quote
echo '$VARIABLE'
cheers,
Devaraj Takhellambam
Hi,
I see a similar problem.
> set home_var MYHOME
> eval echo 'set path \($$home_var/bin \$path\)' > ~/hi.txt
The hi.txt has
set path (7030home_var/bin $path)
I need
set path ($MYHOME/bin $path)
Please help
Thank you
use this:
eval echo 'set path \(\$$home_var/bin \$path\)'
cheers,
Devaraj Takhellambam
Hi Devaraj,
It works.
Thank you for ur quick reply.