Thanks for replying, but what is confusing me is how to handle it if someone used options with the command, like saferm -iv or something, what kind of loop contruct would I have to use to check for each option? Also, how do I check to see if the file actually exists?
Can anyone give me some code for writing a safe version of rm that will move stuff to a specified directory?
The first bit is easy I know but sorting out the options and checking whether the files/directories exists is causing me problems. Help! This is quite urgent. I'm at a unix seminar &...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.