Differences between version 2 and previous revision of Globs.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Monday, July 29, 2002 11:03:57 pm | by PerryLorier | Revert |
Older page: | version 1 | Last edited on Monday, July 29, 2002 11:03:22 pm | by PerryLorier | Revert |
@@ -1,18 +1,18 @@
-A File [Glob] is a way to match files. "*" matches any charactor zero or more times. "?" matches any charactor exactly once. "[a-z]" matches any charactor in the range a-z.
+A File [Glob] is a way to match files. "*" matches any charactor zero or more times. "?" matches any charactor exactly once. "[
[a-z]" matches any charactor in the range a-z.
Some examples:
*.*
matches all files that contain a "." in them.
a*
matches all files that begin with a
- [a-z]*
+ [
[a-z]*
matches all files that begin with a lowercase letter
*.gz
matches all files that end with .gz
See glob(7) for more advanced uses.
Contrast RegularExpressions.