![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
$$ is the pid of the process.
Example: ncpr1 $ ps PID TTY TIME CMD 12415 pts/17 0:00 ksh 16571 pts/17 0:00 ps ncpr1 $ touch junkfile.$$ ncpr1 $ ls -l junkfile.12415 -rw-r--r-- 1 mark king 0 Sep 28 12:25 junkfile.12415 ncpr1 $ |
|
||||
|
$$ makes it unique - by using the PID of the process
eg echo "test" > outfile$$ will create an outfile[PID] |
| Sponsored Links | ||
|
|