Matching files according to pattern.