Here are a few more examples of how the wildcard character can be used in the Bash CLI:
The asterisk is a placeholder for any characters that might appear before or after the '.txt' extension. It is used to match zero or more characters in a file name or a path.įor example, the command ls *.txt would list all files in the current directory that have the '.txt' extension. In the Bash command line interface (CLI), the wildcard character is the asterisk ( *).
Wildcard Selection in Bash Select zero or more characters in a file name or a path using *