Question: 1) (6 points) The following Bourne shell script is used to loop through all Java files in the root directory and its subdirectories. For each

1) (6 points) The following Bourne shell script is used to loop through all Java files in the root directory and its subdirectories. For each C file, ask whether the file should be duplicated (with extension .new added in new file's name), mailed to you (with only the content), or removed (D/M/R) and then take the appropriate action. #1 /bin/sh for file in do Invalidoption="False" . while[ do echo "Please enter your choice for file: " file echo "Duplicate (D) Mail(M) Remove (R)]" case choice in M) mail ylong4@gsu.edu E. R) rm $file t) echo "That is not a valid option..." Invalidoption ="False". ; InValidoption False" InValidoption-False" InValidoption -"True" i esac done done
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
