1.

Solve : creating an undelete script and need help?

Answer»

I have to create a SCRIPT to enable me to retrieve "deleted" files in bash for a class project and am having a little TROUBLE creating an alias for the RM command to cause it to move files to a HIDDEN trash folder. I've been trying to do this for several hours and have not had any luck! I'm totally confused and can use all the help I can get. Can ANYONE help lead me down the right path?!? PLEASE!!!when I do: alias rm='mv $* ~/.trash/'

I get
mv: cannot overwrite non-directory `chap1' with directory `~/.trash/'

anyone know the PROBLEM with this?
:-/



Discussion

No Comment Found