how to use the variable in the current process. thought i say export, i willl not be available in the current shell.
so how to run the shell in such a way that varible is available
If i understand your problem correctly and assuming your shell is
k shell
Please look at the following example
$ cat x.sh
export a="hello"
echo $a
$ unset a
$ echo $a
$ cat x.sh
export a="hello"
echo $a
$ ./x.sh
hello
$ echo $a
$ . ./x.sh
hello
$ echo $a
hello
Thank u so much, this is what i want.
I also want to know if there is an operator << in unix and what does it do.
Yes, it's used for Here Documents.
Check this out from the Advanced Bash Scripting Guide - most of the features will apply for other Bourne-family shells, but here is some Korn Shell specific information.
Cheers
ZB