From f7f656416bcb557acc478fbd3885fde1777d6eac Mon Sep 17 00:00:00 2001 From: redshifttt Date: Fri, 28 Oct 2022 20:04:24 +0100 Subject: [PATCH] hosts/soda: make last not show IP --- hosts/soda/shell-profile/motd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/soda/shell-profile/motd.sh b/hosts/soda/shell-profile/motd.sh index e214e39..eaf24af 100644 --- a/hosts/soda/shell-profile/motd.sh +++ b/hosts/soda/shell-profile/motd.sh @@ -43,7 +43,7 @@ ${tpurple}and we have${treset} ${tbold}$online_now${treset} ${tpurple}online use fi printf "\n${tbold}Who's been around?${treset}\n" - last | sed -r "/(^$|^wtmp|^reboot)/d" | head -n 5 + last -R | sed -r "/(^$|^wtmp|^reboot)/d" | head -n 5 dickswing=$(last | sed -r "/^$/d;/^(wtmp|reboot)/d;/\(00:0[0-1]\)/d" | awk '{print $1}' | sort | uniq -c | sort -nr | sed -r "s/^\s+//") as_of=$(last | grep "wtmp" | awk '{print "from", $4, $5, $7}')