If you specify the wildcard pattern as PA???.*, all files with primary names beginning with PA and comprising five or less characters, and with any extension, will match the pattern. Instead of using the pattern PA???.???, it is simpler to use PA???.*.
Some more examples of patterns where both the wildcards are used together are given below:
TR??.* | This will match all files with primary name beginning with TR and comprising four or less characters, and any extension. |
T*.?? | This will match all files with primary names beginning with T and comprising any number of characters (upto a maximum of eight). The extension has to be of two or less characters. |
???K.* | This will match all files with primary names ending with K and comprising exactly four characters and any extension. |
Z???Y. C* | This pattern will match all files with primary names beginning with Z and ending with Y and comprising exactly five characters. The extension has to begin with C and may comprise any number of characters (subject to a maximum of three). |
When specified in the file name as part of a command, wildcards provide greater flexibility and enable operations on a selective group of files that match the wildcard pattern.