Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dl () {
- local path
- for path in "$@"; do
- # ignore any arguments
- if [[ "$path" = -* ]]; then :
- else
- local dst=${path##*/}
- # append the time if necessary
- while [ -e ~/.Trash/"$dst" ]; do
- dst="$dst"_$(date +%H-%M-%S)
- done
- mv "$path" ~/.Trash/"$dst"
- fi
- done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement