Env file path

Hi,

when I run "env" there are few variable prinitng related to application

 
$env
SRV=test
NVV=test2

from where this file is invoking, I checked in ./bash_profile and ./profile didn't find the variable.

So what is the file I need to edit this variable.

Did you check:

/etc/profile
/etc/bash_profile
~/.bashrc

Or any other files that are sourced in these files with the source or . command.

yes I checked all three, didn't find any of the file

There is a 4th possibility that I mentioned...

No, I don't find any source file insde the script

I'm lost.

Are you saying that you are entering the command:

$env

and it is producing the output:

SRV=test
NVV=test2

?

Or, are you saying that you are running some script and it runs the command:

env

and that is producing the output:

SRV=test
NVV=test2

?

What script are you running?

What shell are you using?

What operating system are you using?

What output do you get from the command:

printf 'env="%s"\n' "$env"

?

I run "env" command from prompt and getting variable, using bash shell and rhel6 is OS.

Have you tried greping for NVV in $HOME/.* and /etc/* ?

Strange that env prints only that for the OP :confused: