通配符 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.txtfrom the current directory to the directorytextfiles. Here,*is a wildcard standing for "any string of characters" and*.txtis 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 将内存中的命令历史写入文件) ...
随机推荐
- 队列模式&主题模式
# RabbitMQ 消息中间件 **Advanced Message Queuing Protocol (高级消息队列协议** The Advanced Message Queuing Protoc ...
- 汽车控制器LIMPHOME电路设计
摘要:本文介绍汽车控制器上常用的3种LIMPHOME电路设计方法,用于在单片机复位重启期间仍能保证外部输出正确性,确保行车安全. 在电子电气领域,单片机使用非常广泛,单片机的复位重启是设计时必须 ...
- 两数之和 II - 输入有序数组
题目描述 给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数. 函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2. 说明: 返 ...
- UVALive - 4222
题目链接:https://vjudge.net/contest/244167#problem/D 题目: For a dance to be proper in the Altered Culture ...
- Ubuntu18.04下给Jupyter-NoteBook设置默认工作路径(附Win设置)
上一篇Jupyter的文章:https://www.cnblogs.com/dotnetcrazy/p/9201976.html Linux 生成配置文件:jupyter-notebook --gen ...
- Neovim中提示Error: Required vim compiled with +python
Neovim在编辑python文件时出现错误提示,如下图 原因 出现该错误的原因说明未安装Python2/3的支持 解决方法 使用包管理器安装Neovim的Python支持python-neovim ...
- WinterAndSnowmen
https://vjudge.net/problem/TopCoder-12891 暴力想法是:dp[i][s1][s2]前i个,第一个集合xor是s1,第二个集合xor是s2方案数O(n^3) 有x ...
- 【洛谷P1198】最大数
题目大意:在线维护一个序列,支持插入一个数,查询区间最值. 题解:直接建立线段树,插入就单点修改,查询就正常查..orz开始还真没想到.. 代码如下 #include <bits/stdc++. ...
- redis设置最大内存
- pytest 3.fixture介绍一 conftest.py
前言: 前面一篇pytest2 讲到用例加setup和teardown可以实现在测试用例之前或之后加入一些操作,但这种是整个脚本全局生效的,如果我想实现以下场景: 用例1需要先登录,用例2不需要登录, ...