aboutsummaryrefslogtreecommitdiffstats
path: root/fish2024/functions/forge-logins.fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish2024/functions/forge-logins.fish')
-rw-r--r--fish2024/functions/forge-logins.fish3
1 files changed, 3 insertions, 0 deletions
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