Question
The UNIX command rm does not provide for recovery of deleted files through a mechanism like the recycle bin typically found in modern operating systems.
The UNIX command rm does not provide for recovery of deleted files through a mechanism like the recycle bin typically found in modern operating systems. Write a shell script "myrm.sh" that is designed to replace rm. It will move the target file(s) specified as parameters to a recycled bin directory instead of really deleting them. Your script should: Create a new directory to be used as the recycle bin. Print an error message if there are no files specified as parameters, where the correct usage is also explained. Print a feedback message deleting anytime a file with name filename is deleted.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started