my @tops = `/bin/grep -i "top-" filename | /usr/bin/awk '(print $3)'`; #### my @tops; open FILE, " ) { if ( m/^top \- (\d{2}:\d{2}:\d{2})/ ) { push @tops, $1; } } close FILE;