#!/usr/bin/perl -w for (`smbstatus`) { $users{$1} = $2 if (/\s*(\d+)\s+(.+?)\s+(.+)\s{2}(.+)\s\((.+)\ +)/); print "$1($users{$1}) = $2\n" if (/(\d+).*?\/data\/dat\/(.*)\s +{3}/); }
In reply to View smbstatus ouput by user, not by PID by inductor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |