#!/bin/sh
# Print users in ascending order of last update time.
# Point to awk that understands strftime() and sort that understands -n.
awk=awk
egrep=egrep
p4=p4
sort=sort
# Print the clients.
$p4 -Ztag users | $egrep '^\.\.\. User |^\.\.\. Update ' | $awk '{ user = $3; getline; printf "%s %s\n", $3, user }' | $sort -n - | $awk '{ printf "%s %s\n", strftime( "%Y/%m/%d %H:%M:%S", $1 ), $0 }'
# |
Change |
User |
Description |
Committed |
|
#1
|
4629 |
Michael Shields |
Scripts for listing clients or users by last access or update time. |
|
|