aboutsummaryrefslogtreecommitdiff
path: root/trashrm
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2022-01-07 18:21:48 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2022-01-07 18:21:48 +0100
commitb11656aaa376a50c8027ea7ae81735257e9b6feb (patch)
tree0b30785cfb35207d39d1969c4f79c58078408de8 /trashrm
parenta6e7b27fd1df9657acc81ffc81a1c7918650d9df (diff)
downloadscripts-b11656aaa376a50c8027ea7ae81735257e9b6feb.tar.gz
scripts-b11656aaa376a50c8027ea7ae81735257e9b6feb.zip
Added trash utilities
Diffstat (limited to 'trashrm')
-rwxr-xr-xtrashrm9
1 files changed, 9 insertions, 0 deletions
diff --git a/trashrm b/trashrm
new file mode 100755
index 0000000..a87c8ad
--- /dev/null
+++ b/trashrm
@@ -0,0 +1,9 @@
1#!/bin/sh
2
3# Move files to a trash folder
4
5trashfolder=${TRASH:-$XDG_DATA_HOME/mytrash}
6thisfolder="$trashfolder/$(date +'%Y-%m-%d-%s')"
7
8mkdir -p "$thisfolder"
9mv $@ "$thisfolder"

Generated with cgit - Back to sebastiano.tronto.net