This question already has an answer here:
- What does “$$” mean in the shell? 2 answers
The output of
echo $$ command displays some number in the standard output like below.
$ echo $$ 14594
What is that number? And also,
$ x=a $ echo $x a
In the above example
echo $x parses the variable x and displays the value of
x to the standard output.Likewise in this command
echo $$, is that the second dollar symbol
represents any variable?