通配符 Globbing赏析
什么是 Globing?
https://www.techopedia.com/definition/14392/globbing
Definition - What does Globbing mean?
Globbing is the process of using wildcard characters to request or evaluate sets of files with the same partial names or sets of characters. Users make the wildcard represent an unknown character or string to search for a wider set of filenames on a particular domain.
Techopedia explains Globbing
Two of the most common forms of globbing are using a question mark to represent a certain unnamed character in the file, and using an asterisk look for a continuous string of characters. But of these two methods, the asterisk method is probably more popular, and goes back to the popular use of PC-DOS command-line operating systems. In these systems, a user would enter a command to search the drive to return lists of filenames with the same extensions, or with the same partial titles. Since the file extension came after the dot in the file name, the user would get a list of all files with a given extension with a command like this:
<*.exe>
On the other hand, users could look for partial titles by entering other characters with the asterisk on the left side of the dot – for example, for a list of executables with titles including the character set "run," the command would look like this:
<run*.exe>
Another use of globbing is in a certain kind of hacking that promotes a denial of service attack. Globbing requires quite a few resources on the part of the server to look for many different files in a large archive of files. Creating sufficiently vague globbing commands can essentially send the server running on a wild goose chase and deplete those resources.
https://www.bing.com/dict/search?q=globbing&FORM=BDVSP2&qpvt=globbing
扩展 wildcard 通配符 为 真实的文件。
globbing
- 网络通配符;文件名代换;通配符扩展
网络释义
1. 2. 文件名代换...3. Shell的基本语法3.1. 变量3.2. 文件名代换(Globbing):* ? []3.3. 命令代换:`或 $()3.4. 算术代换:$(())3.5. 转义字符\3.6. 单... 3. 通配符扩展...件不存在则创建它,如果文件存在则追加输出至末尾处。通配符扩展(globbing)。通配符的概念源自于正则表达式,使得解释器智能地处理 …
http://searchsecurity.techtarget.com/definition/globbing
Globbing is the process of expanding a non-specific file name containing a wildcard character into a set of specific file names that exist in storage on a computer, server, or network. A wildcard is a symbol that can stand for one or more characters. The most common wildcard symbols are the question mark (?) for a single character and the asterisk (*) for a contiguous string of characters.
wildcard 的来历
https://baike.baidu.com/item/wildcard/2951762
纸牌游戏
“百搭牌”、“变牌”,这张牌不代表原来本身的牌值,而代表指定的另外一张牌的牌值。体育运动
体育比赛中的“外卡”或“外卡选手”在网球、羽毛球等职业体育比赛中,比赛正赛和资格赛的签表中都有一定数目的签位,根据排名优势,一些报名选手可以直接进入正赛或资格赛,组委会一般还会将外卡颁发给部分本土选手以及一些排名不够但有特殊情况的选手(如曾经的顶尖选手因伤休战而致排名不够、曾经在该项比赛中取得佳绩、在赛季表现特别抢眼等),使其有资格参加正赛或资格赛。总之, 外卡是向那些本来没有资格参加正赛或资格赛的优秀选手发出的,持有外卡就可以参加比赛了。
glob原意
一滴或者一团, 可以匹配任意东西, 将一团或者一滴 替换为 真实东西的过程 叫globbing
https://www.bing.com/dict/search?q=glob&qs=n&form=Z9LH5&sp=-1&pq=glob&sc=8-4&sk=&cvid=E68D890852A14CDAB46D0BCD0FDB26F9
glob
美 [ɡlɑb]英 [ɡlɒb]
- n.一小滴;一小团
- 网络球蛋白(globulin);展开通配符;一团
1. 一小滴;一小团a small amount of a liquid or substance in a round shape
https://en.wikipedia.org/wiki/Glob_%28programming%29
glob (programming)
From Wikipedia, the free encyclopediaIn computer programming, in particular in a Unix-like environment, glob patterns specify sets of filenames with wildcard characters. For example, the Unix command
mv *.txt textfiles/
moves (mv
) all files with names ending in.txt
from the current directory to the directorytextfiles
. Here,*
is a wildcard standing for "any string of characters" and*.txt
is a glob pattern. The other common wildcard is the question mark (?
), which stands for one character.
占位符 --- wildcard本质上是一种占位符
https://en.wiktionary.org/wiki/placeholder
placeholder (plural placeholders)
Something used or included temporarily or as a substitute for something that is not known or must remain generic; that which holds, denotes or reserves a place for something to come later. quotations ▼
This is placeholder data, so you'll want to include the real numbers as soon as you have them.
通配符 Globbing赏析的更多相关文章
- Saltstack
一.Satlstack的概述 Saltstack是什么? Salt是一种和以往不同的基础设施管理方法,它是建立在大规模系统高速通讯能力可以大幅提升的想法上.这种方法使得Salt成为一个强大的能够解决基 ...
- Linux Shell编程(14)——内部变量
内建变量影响Bash脚本行为的变量.$BASHBash二进制程序文件的路径 bash$ echo $BASH /bin/bash$BASH_ENV该环境变量保存一个Bash启动文件路径,当启动一个脚本 ...
- 程序包管理rpm、yum与简单编译安装程序
Linux程序包管理 Linux中软件的安装主要有两种形式:一种是直接下载源代码包自行编译后安装,另一种直接获取rpm软件包进行安装. 程序的组成部分: 二进制程序:程序的主体文件,比如我们运行一个l ...
- Linux程序包管理rpm与yum
Linux程序包管理 Linux中软件的安装主要有两种形式:一种是直接下载源代码包自行编译后安装,另一种直接获取rpm软件包进行安装. 程序的组成部分: 二进制程序:程序的主体文件,比如我们运行一个l ...
- shell脚本 入门 —— 符号篇
shell Shell就是一个命令行解释器,它的作用是解释执行用户的命令,用户输入一条命令,Shell就解释执行一条,这种方式称为交互式(Interactive). Shell还有一种执行命令的方式称 ...
- Linux--shell的基本特性--01
1.bash的基本特性: a) 命令展开:date命令—— 基于date命令创建命令 查看系统时钟:date 查看硬件时钟: clock .hwclock (常常同步系统时钟与硬件时钟) cal 查看 ...
- bash的基本特性
1.命令历史 作用:查看之前使用的命令 关于命令历史的文件 每个用户家目录下面的.bash_history 在关机的时候,会自动写入一次(history -r 将内存中的命令历史写入文件) 关于命令历 ...
- 6条shell小技巧,让脚本显得不再业余【转】
如何能让自己的shell显得不那么业余?下面6点实践一定有用. 画外音:本篇文章源自Google的一篇实践,抽取了部分1分钟能读完的内容,加入了一些分析. 一.以下面的语句开场 set -o noun ...
- 学习shell的第一天
1.命令历史 作用:查之前使用的命令 关于命令历史的文件 每个用户家目录下面的 .bash_history 在关机的时候,会自动写入一次 (history -a 将内存中的命令历史写入文件) ...
随机推荐
- [HNOI2015]菜肴制作(拓扑排序)
知名美食家小 A被邀请至ATM 大酒店,为其品评菜肴. ATM 酒店为小 A 准备了 N 道菜肴,酒店按照为菜肴预估的质量从高到低给予1到N的顺序编号,预估质量最高的菜肴编号为1. 由于菜肴之间口味搭 ...
- centos7下mysql半同步复制原理安装测试详解
原理简介: 在MySQL5.5之前,MySQL的复制其实都是异步复制(见下图),主库和从库的数据之间存在一定的延迟,这样存在一个隐患:当在主库上写入一个事务并提交成功,而从库尚未得到主库推送的BinL ...
- CentOS下Denyhosts的安装和使用
安装 默认yum就可以进行安装 yum install denyhosts* -y 配置 配置文件路径: /etc/denyhosts.conf ; YUM安装时其实已经配置好了大部分,我们自己稍作改 ...
- Spring 整合 Hibernate 时启用二级缓存实例详解
写在前面: 1. 本例使用 Hibernate3 + Spring3: 2. 本例的查询使用了 HibernateTemplate: 1. 导入 ehcache-x.x.x.jar 包: 2. 在 a ...
- org.apache.poi 读取数字问题
默认呢,POI读取单元格内容为数字的话,自动搞成Dubbo类型的,比如这样: String value1 = row.getCell(0).getNumericCellValue()+"&q ...
- (链表) leetcode 328. Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note her ...
- 构造方法中关键字-- super
package lijun.cn.demo4; public class Person { int num =777; public Person(){ System.out.println(&quo ...
- Linux下FTP虚拟账号环境部署简述
vsftp的用户有三种类型:匿名用户.系统用户.虚拟用户.1)匿名登录:在登录FTP时使用默认的用户名,一般是ftp或anonymous.2)本地用户登录:使用系统用户登录,在/etc/passwd中 ...
- JAVA8 in Action:行为参数化,匿名类及lambda表达式的初步认知实例整理
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.functio ...
- [HNOI2003]消防局的设立 树形dp // 贪心
https://www.luogu.org/problemnew/show/P2279 一开始就想到了贪心的方法,不过一直觉得不能证明. 贪心的考虑是在深度从深到浅遍历每个结点的过程中,对于每个没有覆 ...