deleted data.txt

This commit is contained in:
cmccabe 2020-01-02 19:46:41 +00:00
parent 6aa9262e54
commit e26943f464
1 changed files with 20 additions and 0 deletions

20
examples/who-summarizer.awk Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/awk -f
BEGIN {
print "Running who-summarizer.awk...\r"
USERS[""]=""
}
{
if ($1 != "" && $1 != "reboot" && $1 != "wtmp" && $1 != "root" && !USERS[$1]) {
USERS[$1] = $0
}
}
END {
for (i in USERS) {
if (i != "") {
print toupper(i) ": " USERS[i]
}
}
}