

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


COP3353 – Fall 2008 Assignment 4 Experiencing Shell Script Programming Due Tuesday November 4, 2008 (midnight) Objective: The objective of this assignment is to learn the basic skills to write shell scripts that perform simple tasks involving monitoring directories and files. Problem Description: A given UNIX directory may contain many files and subdirectories. For the purpose of this assignment, a “file” is a nondirectory file and a directory is a subdirectory of the given directory. Each file or directory may have different permissions. For example, a file may have read and execute permissions for the owner. A directory may have only read permission. In this assignment, you are asked to write a shell script that calculates the following information for a given directory specified as a command line argument (as a parameter) to your program
Testing Be sure to test your program thoroughly. To help you understand how the program should work, a sample solution ~nienaber/COP3344/a4.sh is on linprog.cs.fsu.edu. You are encouraged to experiment with his program and compare the output to your output. Once you log onto linprog.cs.fsu.edu, you can execute the script using the following command: ~nienaber/COP3353/a4.sh.x Submission You are required to name your shell script as yourfirstname_yourlastname.sh. For example, suppose there is a student called Bob Smith, the file name should be called Bob_Smith.sh. Submit your assignment at: http://ww2.cs.fsu.edu/~nienaber/teaching/COP3353/ You can submit as many times as you like before the deadline. Your script must contain the following as comments as the second and third lines of the file: Section: