Write a (POSIX) program that searches for a specified file, and if found, prints
ID: 3712952 • Letter: W
Question
Write a (POSIX) program that searches for a specified file, and if found, prints out the relative path of the file from the current working directory and its time stamp. Your program should take one command line argument, the filename to find. If your executable file is “searchFile” and you run this program from the root directory (“/”) and search for a file named “test.txt”. Your output might be something like the following:
$./searchFile test.txt
Searching for test.txt …
Found test.txt in /home/user/CIS324/
Last Edited: Jun 7 10:30