sajad torkamani

$$ gives you the process ID of the current shell.

Tagged: Bash