View Full Version : single environment variable
SpEkTrE
10-21-2003, 12:17 PM
What is a single environment variable? I'm having trouble defining it. And how do you disply it?
>What is a single environment variable?
Just a simple environment variable.
>I'm having trouble defining it.
Depends on your shell, here are two common ones
bash:
$ export OOGA="This is a simple environment variable"
$ echo $OOGA
This is a simple environment variable
tcsh:
% setenv OOGA "This is a simple environment variable"
% echo $OOGA
This is a simple environment variable
Pretty much any other common shell will be a derivative of one of those two. Check your friendly neighborhood man pages to see how to do it with your shell.
>And how do you disply it?
What do you know, I answered two questions with one answer. :) Look above to see a way to echo a shell variable.
SpEkTrE
10-21-2003, 12:36 PM
What do you know, I answered two questions with one answer. Look above to see a way to echo a shell variable.
lol, thanks!
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.