Quote:
Originally Posted by
ravi raj kumar
Hi,
In a shell script i have seen the following statement.
TEMPSQL=/tmp/sample-$$.sql
Here whats the purpose of $$ in sample-$$.sql.
cheers
RRK
See man sh under the section Special Parameters
Code:
$ Expands to the process ID of the shell. In a () subshell, it
expands to the process ID of the current shell, not the sub-
shell.