CSci 553 Spring 2006 Programming Assignment #1 Due Wed, Feb 8, 2006 1) ([UPU]Ch 8 Project, pg.319) Write a bash script called mv (which replaces the Unix command mv) that tries to rename the specified file (using the Unix command mv), but if the destination file exists, instead it creates an index number - a sort of version number - to append to the destination file. So if you type $ mv a.txt b.txt but b.txt already exists, mv will move the file to b.txt.1 Note that if b.txt.1 already exists, you must rename the file to b.txt.2, and so on, until you can successfully rename the file with a name that does not already exist. 2) ([UPU] Ch 5, Exercise 5.2, pg 209) Write a bash shell script utility called junk that satisfies the following specification: Utility: junk [-l] [-p] {fileName]* junk is a replacement for the rm utility. Rather than removing files, it moves them into the subdirectory ".junk" in your home directory. If ".junk" doesn't exist, it is automatically created. The -l option lists the current contents of the ".junk" directory, and the -p option purges ".junk". For extra credit, use your modified mv command from part 1 so that if you junk a file that has the same names as an already junked file, it is saved in the .junk directory with a new version number.