returning value from sqlplus

Hi,

I need to return one value from sqlplus to UNIX environment. Can anyone give me an example?

i.e. select username from v$session where sid=15;

This query will return username value which I require in UNIX after exiting from sqlplus.

Malay

search for the word "sqlplus" in this forum on all sections, there are many replies on this