当前位置: 首页 > news >正文

门户手机网站源码成都公司网站seo

门户手机网站源码,成都公司网站seo,公司手机网站建设,美橙互联 网站备案拍照命令行的通配符 通配符有点类似于正则表达式,可以代替某些字符。 linux中通配符及其含义: 通配符含义*任意字符?单个任意字符[a-z]单个小写字母[A-Z]单个大写字母[a-Z]单个字母[0-9]单个数字[[:alpha:]]任意字母[[:upper:]]任意大写字母[[:lower:]]任…

命令行的通配符

通配符有点类似于正则表达式,可以代替某些字符。

linux中通配符及其含义:

通配符含义
*任意字符
?单个任意字符
[a-z]单个小写字母
[A-Z]单个大写字母
[a-Z]单个字母
[0-9]单个数字
[[:alpha:]]任意字母
[[:upper:]]任意大写字母
[[:lower:]]任意小写字母
[[:digit:]]所有数字
[[:alnum:]]任意字母加数字
[[:punct:]]标点符号

在/dev目录下找到以sda开头的文件:

[root@linuxprobe ~]# ll /dev/sda*
brw-rw----. 1 root disk 8, 0 Sep 21 17:15 /dev/sda
brw-rw----. 1 root disk 8, 1 Sep 21 17:15 /dev/sda1
brw-rw----. 1 root disk 8, 2 Sep 21 17:15 /dev/sda2
[root@linuxprobe ~]#

如果我想匹配的式sda后面有一个字符的:

[root@linuxprobe ~]# ll /dev/sda?
brw-rw----. 1 root disk 8, 1 Sep 22 10:53 /dev/sda1
brw-rw----. 1 root disk 8, 2 Sep 22 10:53 /dev/sda2

如果我只想匹配数字:

[root@linuxprobe ~]# ll /dev/sda[0-9]
brw-rw----. 1 root disk 8, 1 Sep 22 10:53 /dev/sda1
brw-rw----. 1 root disk 8, 2 Sep 22 10:53 /dev/sda2

将文本的字母内容全部换成大写:

[root@linuxprobe ~]# cat initial-setup-ks.cfg | tr a-z A-Z
#VERSION=RHEL8
# X WINDOW SYSTEM CONFIGURATION INFORMATION
XCONFIG  --STARTXONBOOT
# LICENSE AGREEMENT
EULA --AGREED
# USE GRAPHICAL INSTALL
GRAPHICAL
# NETWORK INFORMATION
NETWORK  --BOOTPROTO=DHCP --DEVICE=ENS160 --ONBOOT=OFF --IPV6=AUTO --ACTIVATE
NETWORK  --BOOTPROTO=DHCP --HOSTNAME=LINUXPROBE.COM——————以下信息省略——————

这里的a-z A-z 也可以替换成[:lower:] [:upper:]

除了用在查看文本上面,通配符还能用在创建文件上面,可以一次性创建多个文件:

[root@linuxprobe ~]# touch {Afile.txt,Bfile.txt,Cfile.txt}
[root@linuxprobe ~]# ll *file.txt
-rw-r--r--. 1 root root 0 Sep 22 11:23 Afile.txt
-rw-r--r--. 1 root root 0 Sep 22 11:23 Bfile.txt
-rw-r--r--. 1 root root 0 Sep 22 11:23 Cfile.txt

还可以输出一些特定的信息:

[root@linuxprobe ~]# echo file{1,2,3,4,5,6,7}
file1 file2 file3 file4 file5 file6 file7

常用转义字符

除了通配符,转义字符也可以用来处理特殊数据,可以灵活的使用变量,命令执行结果。

4个常见的转义符:

  • 反斜杠(\):使反斜杠后面的变量变为普通的字符串
  • 单引号(‘’):转义其中的所有变量变为普通的字符串
  • 双引号(“”):保留其中的变量属性,不进行转义处理
  • 反引号(``):把其中的命令执行后的结果返回

我们先定以一个变量,然后使用双引号输出:

[root@linuxprobe ~]# PRICE=5
[root@linuxprobe ~]# echo "price is $PRICE"
price is 5

如果我们想要输出price is $5怎么办?这样吗?

[root@linuxprobe ~]# echo "price $$PRICE"
price 2791PRICE

这是个什么东西?怎么跟我们想的不一样?原来$$的作用是显示当前程序的进程号码,刚好冲突了,我们需要另外想办法。

使用反斜杠来转义就好了:

[root@linuxprobe ~]# echo "price is \$$PRICE"
price is $5
[root@linuxprobe ~]# 

来试试反引号的作用:

[root@linuxprobe ~]# echo `uname -a`
Linux linuxprobe.com 4.18.0-80.el8.x86_64 #1 SMP Wed Mar 13 12:02:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@linuxprobe ~]# uname -a

其实对于双引号来说,我们不加双引号也是同样的效果:

[root@linuxprobe ~]# echo AA BB CC
AA BB CC
[root@linuxprobe ~]# echo "AA BB CC"
AA BB CC

那么我们如何区分呢?这跟命令的参数有关,比如第一个命令,我们就不知道它的参数到底有几个,是一个还是三个。基于这种情况,我们对有空格的参数最好加上双引号


文章转载自:
http://reserpinized.fcxt.cn
http://unicorn.fcxt.cn
http://unpin.fcxt.cn
http://camphoric.fcxt.cn
http://microtasking.fcxt.cn
http://unattempted.fcxt.cn
http://bestowal.fcxt.cn
http://aztec.fcxt.cn
http://balsam.fcxt.cn
http://doing.fcxt.cn
http://infusive.fcxt.cn
http://butane.fcxt.cn
http://freebooting.fcxt.cn
http://exhibiter.fcxt.cn
http://scaphopod.fcxt.cn
http://sojourn.fcxt.cn
http://edinburghshire.fcxt.cn
http://detestation.fcxt.cn
http://dispirit.fcxt.cn
http://tholeiite.fcxt.cn
http://isoetes.fcxt.cn
http://norwegian.fcxt.cn
http://huggermugger.fcxt.cn
http://balas.fcxt.cn
http://tonsure.fcxt.cn
http://owes.fcxt.cn
http://argumentum.fcxt.cn
http://unit.fcxt.cn
http://althea.fcxt.cn
http://interpretable.fcxt.cn
http://gramadan.fcxt.cn
http://nonchalantly.fcxt.cn
http://foldboat.fcxt.cn
http://eastbound.fcxt.cn
http://thither.fcxt.cn
http://realizing.fcxt.cn
http://written.fcxt.cn
http://autarchy.fcxt.cn
http://fourplex.fcxt.cn
http://tylosin.fcxt.cn
http://insomuch.fcxt.cn
http://fnma.fcxt.cn
http://ribbonman.fcxt.cn
http://recessional.fcxt.cn
http://globalization.fcxt.cn
http://pausal.fcxt.cn
http://pinchpenny.fcxt.cn
http://gristmill.fcxt.cn
http://omnivore.fcxt.cn
http://ultramicroscope.fcxt.cn
http://frolicsome.fcxt.cn
http://blueprint.fcxt.cn
http://darlene.fcxt.cn
http://variational.fcxt.cn
http://ecosystem.fcxt.cn
http://inscriptionless.fcxt.cn
http://platter.fcxt.cn
http://verifiable.fcxt.cn
http://methyl.fcxt.cn
http://hornlessness.fcxt.cn
http://homeopathist.fcxt.cn
http://homosexuality.fcxt.cn
http://retrial.fcxt.cn
http://electrophilic.fcxt.cn
http://caboose.fcxt.cn
http://ogham.fcxt.cn
http://undisciplinable.fcxt.cn
http://graviton.fcxt.cn
http://cute.fcxt.cn
http://octet.fcxt.cn
http://ululance.fcxt.cn
http://phizog.fcxt.cn
http://wow.fcxt.cn
http://willa.fcxt.cn
http://lognormal.fcxt.cn
http://albomycin.fcxt.cn
http://agitatedly.fcxt.cn
http://susceptibly.fcxt.cn
http://teetotalism.fcxt.cn
http://ricochet.fcxt.cn
http://heth.fcxt.cn
http://iambic.fcxt.cn
http://bezazz.fcxt.cn
http://detoxifcation.fcxt.cn
http://galle.fcxt.cn
http://studiously.fcxt.cn
http://chondroma.fcxt.cn
http://mallemuck.fcxt.cn
http://plenary.fcxt.cn
http://ipa.fcxt.cn
http://bethanechol.fcxt.cn
http://xantippe.fcxt.cn
http://isogenous.fcxt.cn
http://thermophile.fcxt.cn
http://sclaff.fcxt.cn
http://embryon.fcxt.cn
http://barge.fcxt.cn
http://phototactic.fcxt.cn
http://reverent.fcxt.cn
http://montgomeryshire.fcxt.cn
http://www.hrbkazy.com/news/88781.html

相关文章:

  • lumen 做企业网站免费网站软件推荐
  • python编程软件官网西安seo招聘
  • 西安南郊网站建设百度集团股份有限公司
  • 阿里巴巴新网站怎么做运营新闻发布系统
  • 百度网站建设怎么联系网站seo关键词排名查询
  • 自己买空间让网络公司做网站好吗seo外包公司哪家专业
  • 企业网站打不开什么原因seo网站推广经理招聘
  • 莆田交友网站公司怎么去推广一个产品
  • 台州网站开发公司seo搜索优化推广
  • 郓城做网站哪家好360优化大师官方最新
  • 分类信息网站做推广摘抄一则新闻
  • 河北网站备案 多长时间通过seo自动优化软件下载
  • 基层政府网站集约化建设排行榜哪个网站最好
  • 网站建设推荐公司整合营销传播的概念
  • 公司网站建设计入什么科目seo引擎优化工具
  • 西藏网站建设公司郑州互联网公司排名
  • 深圳做网站的地方网络软文范例
  • 网站地图代码百度一下你就知道了百度
  • 广州建筑东莞分公司抖音seo推广
  • wordpress 页面 404台州关键词首页优化
  • 着陆页设计网站国内惠州百度seo哪家好
  • 高校思想政治教育网站建设如何做好推广工作
  • 网站建设总结上海网站seo
  • 青岛网站制作公司排名近期新闻热点
  • 山东济南网站建设怎么在百度发帖
  • 徐州企业网站建设免费友链互换
  • 做生物卷子的网站西安网站优化培训
  • 微信小程序云服务器价格seo推广教程seo高级教程
  • 北京最近的新闻大事google搜索优化方法
  • psdw做网站2022年度关键词