summaryrefslogtreecommitdiffstats
path: root/gold/mining/bin/cleanup_tmp
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2011-08-25 18:43:50 +0200
committerEUcancER <root@euer.krebsco.de>2011-08-25 18:43:50 +0200
commit7499b82d0d8be67079c91e6d3b277dd65142c8ba (patch)
treec729ce62e9a12af2f399b60f284bef2d4dca1e81 /gold/mining/bin/cleanup_tmp
parentb56137d875f43026aeabcc4403252e5e7008b93a (diff)
parent561f37e4a24061bd70113ebc7951175e0d3e116f (diff)
Merge branch 'master' of https://github.com/krebscode/painload
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