summaryrefslogtreecommitdiff
path: root/del.rc
diff options
context:
space:
mode:
authorYasmine Aldana <yasmine@Yasmines-MacBook-Air.local>2024-08-10 02:09:40 -0700
committerYasmine Aldana <yasmine@Yasmines-MacBook-Air.local>2024-08-10 02:09:40 -0700
commitfd6e4546b8af25b90124c40455ad19500ec3a709 (patch)
treeed579afac7e1320e1b0e55f7369094180f61a575 /del.rc
parent1d1e425b07bbb7ae04f9c7db269c359ebcdab246 (diff)
At a lack for disk space, I'm abusing a family member's 2017 mac.mac
Diffstat (limited to 'del.rc')
-rwxr-xr-xdel.rc9
1 files changed, 6 insertions, 3 deletions
diff --git a/del.rc b/del.rc
index 6d05801..c392ae3 100755
--- a/del.rc
+++ b/del.rc
@@ -1,8 +1,11 @@
-#!/usr/local/plan9/bin/rc
+#!/usr/bin/env rc
-sed -e 's/ is a duplicate.$//' | while (file = `{read}) {
+fn read {
+ $HOME/9/plan9port-master/bin/read
+}
+while (file = `{read}) {
if (test -f $"file) {
- echo rm $"file >> /mnt/mem/log
+ echo rm $"file >> log
rm $"file
}
}