Search Results

Search: Posts Made By: reborg
3,907
Posted By reborg
As my other post but with echo, to display the...
As my other post but with echo, to display the value.



ABS_PATH=$(cd $(dirname $0); pwd)
echo ${ABS_PATH}
3,907
Posted By reborg
But that won't give the path of the script being...
But that won't give the path of the script being executed unless the user is executing the script from the directory in which it resides, it will give the working directory of the parent.
3,907
Posted By reborg
To answer the question, yes there are variables. ...
To answer the question, yes there are variables.

As and example...the absolute path to the current script would be:

ABS_PATH=$(cd $(dirname $0); pwd)
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy