Moin,
Quote:
Originally Posted by repo
why don't you use "which" to find the binary?
|
and to cd into the directory:
Code:
which eclipse && cd `dirname \`which eclipse\``
This works only if eclipse is installed in a path listed in $PATH.
If not (like in my installation too) you can use GNU find:
Code:
cd `find . -name eclipse -type f -printf "%h"`
or any find:
Code:
cd `dirname \`find . -name eclipse -type f -print\``
Jan