Question: 1 . Task Description Write a simple version of the UNIX find program: find all the files in a directory tree with a specific name.
Task Description
Write a simple version of the UNIX find program: find all the files in a directory tree with a specific name. Your
solution should be in the file userfindc
Look at userlsc to see how to read directories.
Use recursion to allow find to descend into subdirectories.
Don't recurse into and
Changes to the file system persist across runs of qemu; to get a clean file system run make clean and then
make qemu.
You'll need to use C strings.
Note that does not compare strings like in Python. Use strcmp instead.
Add the program to UPROGS in Makefile.
Output
Your solution is correct if produces the following output when the file system contains the files b ab and aaab:
b
ab
aaab
I want you to provide two files:
Userfindc
Makefile with UPROGS includes find.c to be able to run it using make clean, and then make qemu.
After running the file please use make tarballpref to create a tarball file.
After finishing all the above, please provide me with the solution in tarball file as requested in the homework.
Please provide me the file in tarball form.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
