How do I compare strings using wildcards?

How do I compare strings using wildcards?


The answer to that depends on what exactly you mean by
`wildcards'.



There are two quite different concepts that qualify as `wildcards'. They
are:




Filename patterns

These are what the shell uses for filename expansion (`globbing').

Regular Expressions

These are used by editors, grep, etc. for matching text, but they
normally aren't applied to filenames.






Home FAQ