If we supposed our executable is named prg and located in the ./bin dir, it's possible to exctract the full path with the following command :
[pene@donunix] which bin/prg | xargs dirname
[pene@donunix] which bin/prg | xargs dirname
Welcome to Don Unix
The main purpose of this blog is to show you some interesting Unix and Linux Tips'n Tricks.
I hope you'll enjoy it
No comments:
Post a Comment