本节将介绍一些 bash 中的参数扩展。
This section will introduce some of the parameter expansions that are available in bash.
即使在这样一小段脚本中,您也可以找到一些参数扩展,包括长度、子字符串、模式匹配和模式替换。
You'll recognize several parameter expansions, including length, substring, pattern matching, and pattern replacement in even this short piece of script.
参数扩展还包括了一些模式匹配功能,该功能带有在文件名扩展或globbing中使用的通配符功能。
Parameter expansion also includes some pattern matching capabilities with the same wild card capabilities as used in filename expansion or globbing.
应用推荐