Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions