I officially have the worst C professor in the world. The guy hasn't answered my email in weeks and I don't have a class meeting before this assignment is due, so I have come here for some help. If anyone could point me in the right direction any part of this project it would be greatly appreciated. I have to do the following things on a Unix system.
1. Write a C program that only lists all files in the current directory and all files in subsequent sub directories.
2. Write a C program to print the lines of a file which contain a word given as the program argument (a simple version of grep UNIX utility).
3. Write a C program to emulate the ls -l UNIX command that prints all files in a current directory and lists access privileges etc. DO NOT simply exec ls -l from the program.
4. Write a C program that gives the user the opportunity to remove any or all of the files in a current working directory. The name of the file should appear followed by a prompt as to whether it should be removed.
I am not certain where to start. These are four separate programs, so help with any part would be awesome. I am not asking for code, just a point in the right direction.