Finding Variable Value defined in a Script

Hi ,

I had a script in which there is a variable $LOG defined and I want to check where that variable is getting value from, is there a way I can check for that variable and it's value if it is defined in some other script function or script . I checked using command env and also export option but no help.

Thanks,
Raju

grep 'LOG' scriptname

Check for lines with LOG=

Also check for source commands or scripts executed with

 . /scriptname