4in1_tools/get-refs.sh
2024-01-06 03:27:04 +00:00

10 lines
244 B
Bash
Executable File

#!/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