Get directory from which script was called from
When you invoke a command in the shell, the new process inherits the working directory of the parent. Here are two ways get the working directory:
echo "$PWD" # variable
pwd # builtin command
When you invoke a command in the shell, the new process inherits the working directory of the parent. Here are two ways get the working directory:
echo "$PWD" # variable
pwd # builtin command