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.
Please refer the Syllabus for the Assignment / Project Requirements and Guidelines
The search path should be based only on the user’s PATH environment variable. You shall not use the
Unix which command, the ksh whence (type) command, the locate command, or the bash type command.
The code for the script shall not use the UNIX ls command to determine if the file is executable or if it
exists.
The script should find only the first occurrence of the “file”. If the file is not found, the script the following
If the first parameter is “-a’, then the script should print all occurrences of the executable file in the user’s
path. Again, if the file was not on the path, an error message should be displayed.
The find command shall not be used.
A project using temporary files will not be graded.
NOTE: The shell variable PATH defines the search path for the directory containing the command.
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.
If the command name contains a / then the search path is not used, you just check if the command/file
specified is executable and not a directory. Otherwise, each directory in the path is searched for an
executable file.
A Shell Script To Locate Executable Files Project Requirement Help
Our Service Charter
1. Professional & Expert Writers: Blackboard Experts only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.
2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.
3. Plagiarism-Free Papers: All papers provided by Blackboard Experts are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.
4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Blackboard Experts is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.
5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.
6. 24/7 Customer Support: At Blackboard Experts, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.
