Last active
June 18, 2021 23:58
-
-
Save deskangel/ff6d3adbf204e7b2d3946f491778ab33 to your computer and use it in GitHub Desktop.
trash files to trash bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# move files to trash bin | |
# NOTICE: creat ~/.Trash folder first on non-macos system | |
POST_FIX=$(date "+%Y-%m-%d %H-%M-%S") | |
echo $POST_FIX | |
for var in "$@"; do | |
mv -v "$var" ~/.Trash/"$var $POST_FIX" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment