Write a shell script to locate executable files. This script takes a list of file names from the command line
and determines which would be executed had these names been given as commands.
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlinesOrder Paper Now
Unix which command, the ksh whence (type) command, the locate command, or the bash type command.
<command> NOT FOUND
<command> would be replaced by the name of the “file” you didn’t find.
path. Again, if the file was not on the path, an error message should be displayed.
Alternative directory names are separated by a colon (:). The current directory can be specified by two or
more adjacent colons, or by a colon at the beginning or end of the path list.
specified is executable and not a directory. Otherwise, each directory in the path is searched for an