summaryrefslogtreecommitdiff
path: root/del.rc
diff options
context:
space:
mode:
Diffstat (limited to 'del.rc')
-rwxr-xr-xdel.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/del.rc b/del.rc
new file mode 100755
index 0000000..6d05801
--- /dev/null
+++ b/del.rc
@@ -0,0 +1,8 @@
+#!/usr/local/plan9/bin/rc
+
+sed -e 's/ is a duplicate.$//' | while (file = `{read}) {
+ if (test -f $"file) {
+ echo rm $"file >> /mnt/mem/log
+ rm $"file
+ }
+}