#!/bin/sh
# Print clients in ascending order of last access 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 clients | $egrep '^\.\.\. client |^\.\.\. Access ' | $awk '{ client = $3; getline; printf "%s %s\n", $3, client }' | $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. |
|
|