Alan Young <alansyoung...@gmail.com> writes:

> greo=$(command -v greo)
>
> if [ -n $greo ]; then
>   $greo ...
> fi
>
> command will search the directories defined in $PATH for the command
> greo and return the fully qualified path.  If it isn't found it will
> return null.  So, if $greo is non-zero, greo exists and you can run
> it.
And if $greo is null the condition will also be true.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to