17 lines
298 B
Bash
Executable File
17 lines
298 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
source "$HOME/bin/scripts/system/style"
|
|
|
|
trash="$HOME/.trash"
|
|
mkdir -p $trash
|
|
DATE=`date +%Y-%m-%d`
|
|
TIME=`date +%H:%M:%S`
|
|
|
|
for obj in "$@"
|
|
do
|
|
name=`echo $obj | rev | cut -d '/' -f '1' | rev`
|
|
mv -b $obj $trash/$name.$DATE.$TIME
|
|
done
|
|
|
|
echo -ne $BOLD$GREEN"... completed"$RESET_COLOR
|