hosts/soda: make last not show IP
This commit is contained in:
parent
c215a58574
commit
f7f656416b
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ ${tpurple}and we have${treset} ${tbold}$online_now${treset} ${tpurple}online use
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n${tbold}Who's been around?${treset}\n"
|
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+//")
|
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}')
|
as_of=$(last | grep "wtmp" | awk '{print "from", $4, $5, $7}')
|
||||||
|
|
Loading…
Reference in a new issue