CSCI 330
Spring 1999
Assignment 8 - Bourne shell

You are to write a bourne shell script that will perform some file management. It will have two primary functions. It can either search the current directory tree for a file and show its location or it can search the tree for a file and delete it. Additionally, you can modify these search functions through the use of options to specify searching on specified name or specified file's inode number.

Use the name of the command to choose whether you are finding or deleting a file. Name your program assn8 and create two soft links to it. Name the first link findit and the second delit. When you run your program, you can test the name by which you invoked it to determine which function to perform.

Once you have determined whether you are finding or deleting, test for the -i option on the command line. If options does not exist, search/delete all files matching name given. If -i option exists, you are to find or delete filenames by matching inode rather than name.

Assumptions:

Pseudocode: