Question: TODO 2 : Shell Scripting File Management You are required to design a simple management shell script that allows users to perform various operations within
TODO : Shell Scripting
File Management
You are required to design a simple management shell script that allows users to perform various
operations within the current directory. The user should choose one of the following from a
menu:
Create a New File:
Ask the user to enter the name of a new file.
Create the file in the directory.
Delete an Existing File:
Ask the user to enter the name of a file they want to delete.
Confirm the deletion with the user before removing the file.
List All Files in the Directory:
Display a list of all files in the directory.
Exit the Script:
Allow the user to exit the script.
Make sure that you shell script is user friendly:
Include error handling for a nonexisting directoryfile
Provide appropriate feedback messages and exits status.
The script should continuously present a menu to the user, allowing them to choose
from the above options until they choose to exit.
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
