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?