Write a C program for each of the following questions. Create anarchive file for your solutions and.

Write a C program for each of the following questions. Create anarchive file for

your solutions and email the archive file to me.

1. Write a C program that only lists all files in the currentdirectory and all files in

subsequent sub directories.

2. Write a C program to print the lines of a file which contain aword 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 printsall files in a

current directory and lists access privileges etc. DO NOT simplyexec ls -l from

the program.

4. Write a C program that gives the user the opportunity to removeany or all of

the files in a current working directory. The name of the fileshould appear

followed by a prompt as to whether it should be removed

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"