<tt>$$</tt>: Process ID



next up previous contents
Next: $!: PID (Process Up: Miscellaneous Previous: break

$$: Process ID

Within a script, $$ represents the Process ID of the currently running script. This allows unique file names for temporary files created by the script. For example

/tmp/temp.$$
is assured a unique file name.



Super-User
Fri Feb 17 15:55:40 EST 1995