#!/usr/local/bin/perl while () { ($username, $pid, $rest) = unpack("A10 A5 A*", $_); print $username, $pid, "\n"; }