Penguin

Differences between version 5 and predecessor to the previous major change of Globs.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 5 Last edited on Monday, March 10, 2003 2:16:13 am by AristotlePagaltzis Revert
Older page: version 2 Last edited on Monday, July 29, 2002 11:03:57 pm by PerryLorier Revert
@@ -1,5 +1,5 @@
-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. "?" 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. 
@@ -11,8 +11,18 @@
 matches all files that begin with a lowercase letter 
  
  *.gz 
 matches all files that end with .gz 
+  
+Note, * and ? __don't__ match / or a . at the beginning of a filename eg: * doesn't match:  
+ .  
+ ..  
+ .foo  
+ baz/nargle  
+but does match:  
+ foo.txt  
+ baz/  
+  
  
 See glob(7) for more advanced uses. 
  
-Contrast RegularExpressions
+Contrast RegularExpression