Re: 'which` command
Janis wrote:
>> Well, i like "which" because i can do this:
>> vi `which somescript.sh`
>> In our env some of the stuff is in rather long paths.
>
> Either have a look at possible options to 'type' in your environment
> to omit the prefix string "<prg> is [cached] ..." in the output, or,
> since you use ksh, have a look at the 'whence' command instead.
Or just use "command -v" which is POSIX/SUS standard.
--
Geoff Clare <netnews@gclare.org.uk>
|