#!/usr/local/bin/perl while( <>){ if ( ( !(/drwx/) && /Jul\s+(\w+)\s/ && ( $1 > 8 ) ) || ( /^[\w\/]+\:/ )) { print ; } }