Reference: how to change `rm` to as a command like `mv ~/ .trash`
I would like to implement recycle bin utility in UNIX since UNIX not has one.
In .bashrc file I change alias rm='move.sh"
as per above Reference guide I have written function in my move.sh script
Script : move.sh
#!/bin/sh
TRASH=<trash directory path>
move()
{
mv "$@" $TRASH;
}
move
when I run I am getting below error. Can some one please help what's wrong I am doing?
mv: Insufficient arguments (1) Usage: mv [-f] [-i] f1 f2
mv [-f] [-i] f1 ... fn d1
mv [-f] [-i] d1 d2