logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

The goal of this project is to add additional functionality to the search program implemented in Project #2.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Description

The goal of this project is to add additional functionality to the search program implemented in Project #2. In addition to the functionality described in Project #2, the program must support the following command-line options:

1. -e "<unix-command with arguments>"

For each file that matches the search criteria the UNIX command specified with arguments must be executed.

2. -E "<unix-command with arguments>" [Graduate Students Only]

The list of files that matches the search criteria must be provided as an argument to the UNIX command specified.

 

Note that with the -e option the UNIX command is executed for each file whereas with the - E option the UNIX command is executed only once but uses all the file names as the argument. You must use fork/exec/wait to create a new process to execute the UNIX command.

The UNIX command and any optional arguments are enclosed within double quotes. The program should support -e or -E options in combination with -s and -f options. You can assume that the -e or -E options appear after the -s and -f options.

Guidelines and Hints

1. You should use a Makefile to compile and build this project and make sure to submit the Makefile along with the rest of the source code.

2. You should upload all the source code, Makefile, and a README.txt file to Canvas. Please do not upload any object files or executable files.

 

Program Documentation and Testing

1. Use appropriate names for variables and functions.

2. Use a Makefile to compile your program.

3. Include meaningful comments to indicate various operations performed by the program.

4. Programs must include the following header information within comments:

4. Test your program with the sample test cases provided as well as your own test cases.

5. You can include any comments you may have about testing in the README.txt file.

 

(5/5)
Attachments:

Expert's Answer

359 Times Downloaded

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

359 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

645 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

997 Answers

Hire Me
expert
Husnain SaeedComputer science

949 Answers

Hire Me
expert
Atharva PatilComputer science

783 Answers

Hire Me

Get Free Quote!

274 Experts Online