find files based on pattern