The $$ variable is the process id. It will be consistent through the run of the script. Each invocation of the script will get a different process id.

Brant Evans

On Mon, Feb 16, 2009 at 10:41 PM, Nathan England <nathan@paysonlinux.org> wrote:

Hello Hello,

       I am looking for an explanation of what '$$' is in bash.
I can create a file or a directory, assign it to variables, but how much can I
do before it changes, or what causes it to change?

What exactly does it mean? Searching google for '$$' returns nothing useful.

Nathan
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss