aboutsummaryrefslogtreecommitdiff
path: root/trashrm
diff options
context:
space:
mode:
Diffstat (limited to '')
-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