LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   env variable (https://www.linuxquestions.org/questions/linux-software-2/env-variable-313166/)

allelopath 04-14-2005 09:06 AM

env variable
 
I want to check the value of an environment variable in a bash shell.

if i do an 'env' command, that gives me all of them.
I would like to be able to check just one, something like:

#env LD_LIBRARY_PATH
LD_LIBRARY_PATH=/one/two/three

How can I do this?

Crashed_Again 04-14-2005 09:13 AM

Maybe:

# env | grep LD_LIBRARY_PATH

I think there is a better way to do this but I can't think of it off the top of my head.

allelopath 04-14-2005 09:55 AM

works for me

allelopath 04-14-2005 12:07 PM

printenv LD_LIBRARY_PATH


All times are GMT -5. The time now is 05:48 PM.