Globbing, pronounced /ˈɡlɒbɪŋ/, is a term used in computer programming to describe the process of matching filenames using wildcard characters. The word has its roots in the term "glob", which refers to a set of files matching a certain pattern. The spelling of "globbing" is formed by adding the suffix "-ing" to "glob". The "o" is pronounced as ɒ, which is an open back rounded vowel. The "b" is pronounced as b sound, which is a voiced bilabial stop consonant.
Globbing is a computing term that refers to the process of matching and expanding file or directory patterns using a set of predefined wildcard characters known as "glob patterns." It is commonly employed by command-line interpreters or shells to interpret and validate user input in a more flexible manner.
In the context of globbing, a glob pattern is a string that contains special characters that have distinct meanings. The most commonly used characters are the asterisk (*) and the question mark (?). The asterisk represents zero or more characters, while the question mark represents a single character. These special characters can be combined with regular characters to create a pattern that matches a set of file or directory names.
When globbing is performed, the system analyzes the glob pattern provided by the user and performs pattern matching against the names of the files or directories in the current working directory or a specified location. This enables the user to select or manipulate multiple files at once, based on a specific pattern.
Globbing is extensively utilized in various environments such as Unix-like systems, command-line interfaces, scripting languages, and programming libraries. It greatly simplifies file and directory operations by providing a concise and efficient way of specifying patterns and applying them to collections of files or directories. Its flexibility and power make globbing an essential tool for managing and manipulating files and directories in a wide range of computing scenarios.
The term "globbing" does not have a clear etymology, as it is primarily a slang term used in computer programming and systems administration. It refers to a specific kind of file name expansion or pattern matching feature found in various command shells and programming languages.
However, the term likely derives from the word "glob", which is a common abbreviation for "global" or "global pattern". It is used to describe a type of wildcard character (*) that matches any number of characters, including zero, within a specific file or directory naming convention.
The verb form "globbing" simply adds the suffix "-ing" to "glob". It is often used to describe the process of expanding or matching file names using glob patterns.