$$ in shell script
$$ is the process ID (PID) of the script itself.
$BASHPID is the process ID of the current instance of Bash. This is not the same as the $$ variable, but it often gives the same result.
$$ in shell script
$$ is the process ID (PID) of the script itself.
$BASHPID is the process ID of the current instance of Bash. This is not the same as the $$ variable, but it often gives the same result.
what is shell scripting
A shell script is a computer program designed to be run by the Unix/Linux shell which could be one of the following:
The Bourne Shell
The C Shell
The Korn Shell
The GNU Bourne-Again Shell
A shell is a command-line interpreter and typical operations performed by shell scripts include file manipulation, program execution, and printing text.
for more visit https://www.tutorialspoint.com/unix/shell_scripting.htm
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us