summaryrefslogtreecommitdiff
path: root/postpost/del_tildes
diff options
context:
space:
mode:
Diffstat (limited to 'postpost/del_tildes')
-rwxr-xr-xpostpost/del_tildes18
1 files changed, 18 insertions, 0 deletions
diff --git a/postpost/del_tildes b/postpost/del_tildes
new file mode 100755
index 0000000..972a75d
--- /dev/null
+++ b/postpost/del_tildes
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+for s in $1/*
+do
+ if [ -d "$s" ]
+ then
+ $0 $s
+ fi
+done
+
+for s in $1/*~
+do
+ if [ -e "$s" ]
+ then
+ echo "rm $s"
+ rm "$s"
+ fi
+done