Next: grep Procedure, Previous: find Procedure, Up: Utility Procedures
Searches the execution path for an executable file binary, like
the BSD which
utility. This procedure uses the shell environment
variable PATH. It returns 0 if the binary is not in the
path, or if there is no PATH environment variable. If
binary
is in the path, it returns the full path to binary
.
which{file}
binary
The executable program or shell script to look for.