LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what is the meaning $$ in shell (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-meaning-%24%24-in-shell-856221/)

procfs 01-13-2011 10:31 PM

what is the meaning $$ in shell
 
Hi I saw this entry in a script

export TEMP_HOME=/temp/$$

when I do echo $$ on the command prompt I am getting a number, can some one tell me what this mean ($$)

Thanks & Best Regards

AlucardZero 01-13-2011 10:57 PM

http://tldp.org/LDP/abs/html/interna...s.html#PROCCID

ubyt3m3 01-13-2011 10:58 PM

$$ expands to the process ID of the shell.

This site may be helpful: http://linuxshellaccount.blogspot.co...s-in-bash.html

-gibb

procfs 01-14-2011 12:25 AM

thank you guys, I was wondering why it was changing, so it was giving the process id of the process great Thanks again


All times are GMT -5. The time now is 12:39 PM.