Question: The following Bourne shell script is used to loop through the files in the home directory (~). For each C file, ask whether the file

The following Bourne shell script is used to loop through the files in the home directory (~). 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 fill in ___ A. ___ do validOption="False"; while [___ B. ___] do echo "Please enter your choice for file: "$file echo "[Duplicate(D) Mail(M) Remove(R))" ___C. ___ case $choice in ___ D. ___ validOption="True";; m|M) mail ylong4@gsu.edu validOption="True*;; r|R) m $file validOption = "True";; F# echo "That is not a valid option..." validOption="Palse";; esac done done The following Bourne shell script and C program can accomplish the same task: read a number from user's input and reverse digits of this number. The following Bourne shell script is used to loop through the files in the home directory (~). 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 fill in ___ A. ___ do validOption="False"; while [___ B. ___] do echo "Please enter your choice for file: "$file echo "[Duplicate(D) Mail(M) Remove(R))" ___C. ___ case $choice in ___ D. ___ validOption="True";; m|M) mail ylong4@gsu.edu validOption="True*;; r|R) m $file validOption = "True";; F# echo "That is not a valid option..." validOption="Palse";; esac done done The following Bourne shell script and C program can accomplish the same task: read a number from user's input and reverse digits of this number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
