From b6c7854c1784754314dea196dfa7ff2e6140ee01 Mon Sep 17 00:00:00 2001 From: Brock Date: Fri, 26 Dec 2014 16:35:56 +0800 Subject: [PATCH] add cleanup.sh --- cleanup.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cleanup.sh diff --git a/cleanup.sh b/cleanup.sh new file mode 100644 index 0000000..57bb59c --- /dev/null +++ b/cleanup.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# username|ipaddr +# brock|10.8.1.1 + +find /var/log -exec sed -i -r "/$1/d" {} \; +find /var -name '*.log' -exec sed -i -r "/$1/d" {} \; +