V2EX  ›  英汉词典
Enqueued related words: Pathname

Globbing

定义 Definition

globbing(名词/动名词):在计算机中指使用通配符(如 *?[])进行文件名或路径的模式匹配,由 shell 或程序将模式“展开”为实际匹配到的文件列表。也可泛指“把许多东西合并成一团/一类”,但最常见用法在命令行与编程语境中。

发音 Pronunciation (IPA)

/ˈɡlɒbɪŋ/ , /ˈɡlɑːbɪŋ/

例句 Examples

I used globbing to match all .txt files.
我用通配符匹配了所有的 .txt 文件。

In many Unix shells, globbing happens before the command runs, so *.log may expand into a long list of filenames.
在许多 Unix shell 中,globbing 会在命令执行前发生,因此 *.log 可能会被展开成一长串文件名。

词源 Etymology

globbing 来自 glob(“一团、团块”),而 glob 在计算机里常被解释为 global 的缩略用法,用来表示“通用/全局的模式匹配”。后来 globbing 固定指 shell 中的“通配符展开/模式展开”。

相关词 Related Words

文学与著作 Literary Works

  • The Unix Programming Environment(Brian W. Kernighan, Rob Pike)——讨论 shell 通配与文件名展开(globbing)的概念与用法。
  • Learning the bash Shell(Cameron Newham)——讲解 Bash 中的通配符与 globbing 规则。
  • GNU Bash Reference Manual ——对 pathname expansion(即 globbing)的语法与细节有系统说明。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   812 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 19:39 · PVG 03:39 · LAX 11:39 · JFK 14:39
♥ Do have faith in what you're doing.