search files in directory by pattern