Question: Step 1 Write a shell script that prompts the user to enter a valid directory. If the input value is a valid directory then display
Step
Write a shell script that prompts the user to enter a valid directory.
If the input value is a valid directory then display a list of subdirectories in the given directory.
Else, display an appropriate error message.
Step
Write a shell script that prompts the user to enter a valid directory.
square Prompt the user to enter a valid directory as long as the input is invalid
If the input value is a valid directory then display a list of subdirectories in the given directory.
Step
Write a shell script that prompts the user to enter a valid directory.
If the input value is a valid directory then display a list of files in the given directory.
Else, display an appropriate error message.
Step
Write a shell script that prompts the user to enter a valid directory.
If the input value is a valid directory then do the following for each item in the given directory:
If the item is a directory then display a list of subdirectories in the given directory.
If the item is a file then display its name and size.
Else, display an appropriate error message.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
