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 2: 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[2]:
Create a New File:[2]
Ask the user to enter the name of a new file.
Create the file in the directory.
Delete an Existing File: [2]
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: [2]
Display a list of all files in the directory.
Exit the Script: [2]
Allow the user to exit the script.
Make sure that you shell script is user friendly:
Include error handling for a non-existing directory/file.[1]
Provide appropriate feedback messages and exits status. [2]
The script should continuously present a menu to the user, allowing them to choose
from the above options until they choose to exit. [2]
 TODO 2: Shell Scripting File Management You are required to design

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!