deleted data.txt
This commit is contained in:
parent
6aa9262e54
commit
e26943f464
|
@ -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]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue