From 8debc9ec9caed3bad157a258583f20cafaaa8ac7 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 15 Feb 2024 10:21:33 +0000 Subject: Adds fish 2024 version config --- fish2024/functions/forge-logins.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 fish2024/functions/forge-logins.fish (limited to 'fish2024/functions/forge-logins.fish') diff --git a/fish2024/functions/forge-logins.fish b/fish2024/functions/forge-logins.fish new file mode 100644 index 0000000..67f538f --- /dev/null +++ b/fish2024/functions/forge-logins.fish @@ -0,0 +1,3 @@ +function forge-logins --description 'Get logins on forge server - provide data as 10Feb2024 as first arg.' + ssh minecraft "find ~/forge-server/logs -name \*.gz -print0|xargs -0 zgrep \"joined the game\"|grep \"$argv[1]\"|awk '{print \$1, \$2, \$6}'|cut -d\":\" -f2-|cut -d\" \" -f2-|sed 's/]//'" +end -- cgit v1.2.3