You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
349 B
14 lines
349 B
local trash_dir="${HOME}/.Trash"
|
|
local trash_item
|
|
local item
|
|
for item in "${@}"; do
|
|
if [[ -e "${item}" ]] || [[ -L "${item}" ]]; then
|
|
trash_item="${trash_dir}/${item:t}"
|
|
if [[ -e "${trash_item}" ]] || [[ -L "${trash_item}" ]]; then
|
|
trash_item="${trash_item} $(date "+%H-%M-%S")"
|
|
fi
|
|
mv -f "${item}" "${trash_item}"
|
|
fi
|
|
done
|
|
|