Search Results

Search: Posts Made By: rss67
35,371
Posted By rss67
quite useful suggestion.(probably reducing d work...
quite useful suggestion.(probably reducing d work shell has to do)
35,371
Posted By rss67
hi alister, got what you are doing, ...
hi alister,

got what you are doing,
"`dirname \"$0\"`" is a relative path, but still its a valid path from current pwd. so you are jumping to that path, then get new pwd in variable, which will...
35,371
Posted By rss67
hi grepFruit, thanks for replying, but i want...
hi grepFruit,
thanks for replying, but i want the script to run on all machines, so i dont think so i'll be able to use "readlink" (i found that its not working on SunOS 5.10).

---------- Post...
35,371
Posted By rss67
absolute path for a script ran with relative path
I have a script in which i want to print absolute path of the same script irrespective of path from where i run script.

I am using
test.sh:

echo "pwd : `pwd`"
echo "script name: $0"
echo...
Showing results 1 to 4 of 4

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