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" {} \; +