In computer programming, glob patterns specify sets of filenames with wildcard characters. For example, the Unix Bash shell command <syntaxhighlight lang="Bash" inline>mv *.txt textfiles/</syntaxhighlight> moves (<syntaxhighlight lang="Bash" inline>mv</syntaxhighlight>) all files with names ending in codice_1 from the current directory to the directory codice_2. Here, codice_3 is a wildcard standing for "any string of characters" and codice_4 is a glob pattern. The other common wildcard is the question mark (codice_5), which stands for one character. For example, <syntaxhighlight lang="Bash" inline>mv ?.txt shorttextfiles/</syntaxhighlight> will move all files named with a single character followed by codice_1 from the current directory to directory codice_7, while <syntaxhighlight lang="Bash" inline>??.txt</syntaxhighlight> would match all files whose name consists of 2 characters followed by codice_1.