i have a very unique problem.
now i have a big shell script and within that shell script i hop from one place to another.
now we have commands like
pwd
which tell u in which directory u are at a particular moment.
similarly i wan to know of a command which call tell me that where my script is at a particular moment.
e.g.
Code:
cd directory1
echo " the program is now in the directory `the_wanted_command`"
cd directory2
echo " the program is now in the directory `the_wanted_command`"
where `the_wanted_command` is the command i am looking for.
so every time i change the directory within the code i want to list the complete path where i am.
just like pwd directory gives me the path of where i am in the file system i want a command which can do exactly the same for the process being executed.