#!/bin/sh

cat /opt/samba/var/log.* |
perl -ne 'print "$1:$2\n" if /connect to service (\w+) as user (\w+)/' | 
sort -u
