<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Globbing</id>
		<title>Globbing - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Globbing"/>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Globbing&amp;action=history"/>
		<updated>2026-04-15T06:55:16Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.christophchamp.com/index.php?title=Globbing&amp;diff=5200&amp;oldid=prev</id>
		<title>Christoph: New page: In computer programming, the verb '''glob''' or '''globbing''' is used to refer to an instance of pattern matching behavior. The noun '''glob''' is sometimes used to refer to a particular ...</title>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Globbing&amp;diff=5200&amp;oldid=prev"/>
				<updated>2008-11-06T23:04:21Z</updated>
		
		<summary type="html">&lt;p&gt;New page: In computer programming, the verb &amp;#039;&amp;#039;&amp;#039;glob&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;globbing&amp;#039;&amp;#039;&amp;#039; is used to refer to an instance of pattern matching behavior. The noun &amp;#039;&amp;#039;&amp;#039;glob&amp;#039;&amp;#039;&amp;#039; is sometimes used to refer to a particular ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In computer programming, the verb '''glob''' or '''globbing''' is used to refer to an instance of pattern matching behavior. The noun '''glob''' is sometimes used to refer to a particular pattern, e.g. &amp;quot;''use the glob ''*.log'' to match all those log files''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
 bash$ ls -l&lt;br /&gt;
 total 2&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 a.1&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 b.1&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 c.1&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo       466 Aug  6 17:48 t2.sh&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo       758 Jul 30 09:02 test1.txt&lt;br /&gt;
 &lt;br /&gt;
 bash$ ls -l t?.sh&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo       466 Aug  6 17:48 t2.sh&lt;br /&gt;
 &lt;br /&gt;
 bash$ ls -l [ab]*&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 a.1&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 b.1&lt;br /&gt;
 &lt;br /&gt;
 bash$ ls -l [a-c]*&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 a.1&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 b.1&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 c.1&lt;br /&gt;
 &lt;br /&gt;
 bash$ ls -l [^ab]*&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 c.1&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo       466 Aug  6 17:48 t2.sh&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo       758 Jul 30 09:02 test1.txt&lt;br /&gt;
 &lt;br /&gt;
 bash$ ls -l {b*,c*,*est*}&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 b.1&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo         0 Aug  6 18:42 c.1&lt;br /&gt;
 -rw-rw-r--    1 bozo  bozo       758 Jul 30 09:02 test1.txt&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 bash$ echo *&lt;br /&gt;
 a.1 b.1 c.1 t2.sh test1.txt&lt;br /&gt;
 &lt;br /&gt;
 bash$ echo t*&lt;br /&gt;
 t2.sh test1.txt&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
Filename expansion can match dotfiles, but only if the pattern explicitly includes the dot.&lt;br /&gt;
&lt;br /&gt;
   1 ~/[.]bashrc    # Will not expand to ~/.bashrc&lt;br /&gt;
   2 ~/?bashrc      # Neither will this.&lt;br /&gt;
   3                # Wild cards and metacharacters will not expand to a dot in globbing.&lt;br /&gt;
   4 &lt;br /&gt;
   5 ~/.[b]ashrc    # Will expand to ~./bashrc&lt;br /&gt;
   6 ~/.ba?hrc      # Likewise.&lt;br /&gt;
   7 ~/.bashr*      # Likewise.&lt;br /&gt;
   8 &lt;br /&gt;
   9 # Setting the &amp;quot;dotglob&amp;quot; option turns this off.&lt;br /&gt;
  10 &lt;br /&gt;
  11 # Thanks, S.C.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://www.faqs.org/docs/abs/HTML/globbingref.html Advanced Bash-Scripting Guide: Globbing]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Command Line Tools]]&lt;/div&gt;</summary>
		<author><name>Christoph</name></author>	</entry>

	</feed>