diff --git a/get-refs.sh b/get-refs.sh new file mode 100755 index 0000000..8b68684 --- /dev/null +++ b/get-refs.sh @@ -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