add get-refs.sh

This commit is contained in:
E. S. 2024-01-06 03:27:01 +00:00
parent bff2e1ca6c
commit 07929bb910

9
get-refs.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
source ~/.local/my/bash/bashrc
files="4in1.ws_access.log files.4in1.ws_access.log"
for f in $files; do
echo "> $f"
my_ssh root@4in1 cat "/var/log/nginx/$f" | awk '{print $11}' | grep -v 4in1.ws | sed 's/"//g' | sort | uniq
done