summaryrefslogtreecommitdiffstats
path: root/gold/mining/bin/cleanup_tmp
diff options
context:
space:
mode:
authortv <tv@xso>2011-08-24 16:45:00 +0200
committertv <tv@xso>2011-08-24 16:45:00 +0200
commitc37ab9c4accc58919e87ad4eee1ef19f49eed873 (patch)
treee640c348718e2a72770ce47d03e4549b6fbce80f /gold/mining/bin/cleanup_tmp
parente7a148349ef3e1e4e1607fd29148bec51dc4ed82 (diff)
{btc -> gold} SC & co., we're ready
Diffstat (limited to 'gold/mining/bin/cleanup_tmp')
-rwxr-xr-xgold/mining/bin/cleanup_tmp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/mining/bin/cleanup_tmp b/gold/mining/bin/cleanup_tmp
new file mode 100755
index 00000000..e1395b19
--- /dev/null
+++ b/gold/mining/bin/cleanup_tmp
@@ -0,0 +1,4 @@
+#! /bin/sh
+ls -lAtr /tmp/ | sed -rn '
+ /\.so$/{$!{s/.* ([A-Za-z0-9]+\.so)$/rm -v \/tmp\/\1/p}}
+' | sudo sh